All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steffen Maier <maier@linux.vnet.ibm.com>
To: Christoph Hellwig <hch@infradead.org>, Hannes Reinecke <hare@suse.de>
Cc: James Bottomley <jbottomley@parallels.com>, linux-scsi@vger.kernel.org
Subject: Re: [PATCH 7/7] scsi_error: do not use command list for host reset
Date: Fri, 27 Jun 2014 12:42:57 +0200	[thread overview]
Message-ID: <53AD4AB1.6080205@linux.vnet.ibm.com> (raw)
In-Reply-To: <20140627075839.GC21799@infradead.org>

On 06/27/2014 09:58 AM, Christoph Hellwig wrote:
>> @@ -771,7 +770,7 @@ static int scsi_try_host_reset(struct scsi_cmnd *scmd)
>>   		if (!hostt->skip_settle_delay)
>>   			ssleep(HOST_RESET_SETTLE_TIME);
>>   		spin_lock_irqsave(host->host_lock, flags);
>> -		scsi_report_bus_reset(host, scmd_channel(scmd));
>> +		scsi_report_bus_reset(host, -1);
>
> The old code report a bus reset for every device on the channel this
> command was on, and the new one will not report anything because
> scsi_report_bus_reset doesn't treat -1 as a wild card.  To keep the old
> behaviour you'll have to pass a channel argument here.  It's not quite
> clear to me if ->eh_host_reset_handler is only supposed to reset a
> "channel" or the whole HBA, but if we want to change behavior here
> it should be a separate well documented patch.

I think Hannes' change down below in his same patch introduces a channel 
of -1 as wild card for the host reset which affects all rports of the 
host, so I assume this would work as before?:

> @@ -2245,7 +2233,7 @@ void scsi_report_bus_reset(struct Scsi_Host *shost, int channel)
>  	struct scsi_device *sdev;
>
>  	__shost_for_each_device(sdev, shost) {
> -		if (channel == sdev_channel(sdev))
> +		if (channel == -1 || channel == sdev_channel(sdev))
>  			__scsi_report_device_reset(sdev, NULL);
>  	}
>  }

-- 
Mit freundlichen Grüßen / Kind regards
Steffen Maier

Linux on System z Development

IBM Deutschland Research & Development GmbH
Vorsitzende des Aufsichtsrats: Martina Koederitz
Geschaeftsfuehrung: Dirk Wittkopp
Sitz der Gesellschaft: Boeblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2014-06-27 10:43 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-27  6:26 [PATCH 0/7] Use 'Scsi_Host' as argument for host reset Hannes Reinecke
2014-06-27  6:26 ` [PATCH 1/7] scsi: fix comment in scsi_device_set_state() Hannes Reinecke
2014-06-27  6:27 ` [PATCH 2/7] mptfc: Do not call fc_block_scsi_eh() on host reset Hannes Reinecke
2014-06-27  6:27 ` [PATCH 3/7] ibmvfc: " Hannes Reinecke
2014-06-27  6:27 ` [PATCH 4/7] libfc: " Hannes Reinecke
2014-06-27  6:27 ` [PATCH 5/7] scsi_transport_fc: Use fc_rport as argument for fc_block_scsi_eh Hannes Reinecke
2014-06-27 12:46   ` Steffen Maier
2014-06-27  6:27 ` [PATCH 6/7] scsi: Use Scsi_Host as argument for eh_host_reset_handler Hannes Reinecke
2014-06-27 10:47   ` Steffen Maier
2014-06-27 11:04     ` Hannes Reinecke
2014-06-27 11:52       ` Martin Peschke
2014-06-27 12:00         ` Hannes Reinecke
2014-06-27 14:41     ` Steffen Maier
2014-06-27 17:52       ` Hannes Reinecke
2014-06-27  6:27 ` [PATCH 7/7] scsi_error: do not use command list for host reset Hannes Reinecke
2014-06-27  7:06   ` Bart Van Assche
2014-06-27  7:58   ` Christoph Hellwig
2014-06-27 10:42     ` Steffen Maier [this message]
2014-06-27  7:59 ` [PATCH 0/7] Use 'Scsi_Host' as argument " Christoph Hellwig
2014-06-27  8:14   ` Hannes Reinecke
2014-06-27  8:15     ` Christoph Hellwig
2014-09-07 16:21 ` Christoph Hellwig
2014-09-08  6:49   ` Hannes Reinecke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53AD4AB1.6080205@linux.vnet.ibm.com \
    --to=maier@linux.vnet.ibm.com \
    --cc=hare@suse.de \
    --cc=hch@infradead.org \
    --cc=jbottomley@parallels.com \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.