From: Douglas Gilbert <dgilbert@interlog.com>
To: "Elliott, Robert (Server Storage)" <Elliott@hp.com>,
Christoph Hellwig <hch@lst.de>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH 6/6] scsi: return EAGAIN when resetting a device under EH
Date: Thu, 06 Nov 2014 17:55:36 -0500 [thread overview]
Message-ID: <545BFC68.2080705@interlog.com> (raw)
In-Reply-To: <94D0CD8314A33A4D9D801C0FE68B402959377FC3@G4W3202.americas.hpqcorp.net>
On 14-11-06 04:46 PM, Elliott, Robert (Server Storage) wrote:
>
>
>> -----Original Message-----
>> From: Christoph Hellwig [mailto:hch@lst.de]
>> Sent: Thursday, 30 October, 2014 4:27 AM
>> To: linux-scsi@vger.kernel.org
>> Cc: Douglas Gilbert; Elliott, Robert (Server Storage)
>> Subject: [PATCH 6/6] scsi: return EAGAIN when resetting a device
>> under EH
>>
>> Signed-off-by: Christoph Hellwig <hch@lst.de>
>> ---
>> drivers/scsi/scsi_ioctl.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/scsi/scsi_ioctl.c b/drivers/scsi/scsi_ioctl.c
>> index 712f159..c4f7b56 100644
>> --- a/drivers/scsi/scsi_ioctl.c
>> +++ b/drivers/scsi/scsi_ioctl.c
>> @@ -278,7 +278,7 @@ int
>> scsi_ioctl_block_when_processing_errors(struct scsi_device *sdev, int
>> cmd,
>> {
>> if (cmd == SG_SCSI_RESET && ndelay) {
>> if (scsi_host_in_recovery(sdev->host))
>> - return -ENODEV;
>> + return -EAGAIN;
>> } else {
>> if (!scsi_block_when_processing_errors(sdev))
>> return -ENODEV;
>> --
>> 1.9.1
>
> This is how sg_reset responds to -EAGAIN, which seems reasonable:
> sg_reset: starting device reset
> sg_reset: SG_SCSI_RESET failed: Resource temporarily unavailable
That message has been tweaked so in sg3_utils version 1.40
that will read:
sg_reset: try again later, may be resetting now
> That is easy to trigger when running sg_reset in parallel to
> multiple devices presented by the same controller. In one
> example to 16 devices, 10 got that result while 6 succeeded.
>
> Tested-by: Robert Elliott <elliott@hp.com>
> Reviewed-by: Robert Elliott <elliott@hp.com>
next prev parent reply other threads:[~2014-11-06 22:55 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-30 9:27 misc scsi ioctl updates V2 Christoph Hellwig
2014-10-30 9:27 ` [PATCH 1/6] scsi: refactor scsi_reset_provider handling Christoph Hellwig
2014-10-30 9:38 ` Hannes Reinecke
2014-11-05 14:11 ` Hannes Reinecke
2014-11-05 14:25 ` Martin K. Petersen
2014-11-06 18:01 ` Elliott, Robert (Server Storage)
2014-10-30 9:27 ` [PATCH 2/6] scsi: split scsi_nonblockable_ioctl Christoph Hellwig
2014-11-05 14:12 ` Hannes Reinecke
2014-11-05 14:28 ` Martin K. Petersen
2014-11-06 22:35 ` Elliott, Robert (Server Storage)
2014-10-30 9:27 ` [PATCH 3/6] sd: fix up ->compat_ioctl Christoph Hellwig
2014-10-30 9:40 ` Hannes Reinecke
2014-11-05 14:13 ` Hannes Reinecke
2014-11-05 14:29 ` Martin K. Petersen
2014-11-06 21:41 ` Elliott, Robert (Server Storage)
2014-10-30 9:27 ` [PATCH 4/6] st: call scsi_set_medium_removal directly Christoph Hellwig
2014-11-05 14:13 ` Hannes Reinecke
2014-11-05 14:31 ` Martin K. Petersen
2014-11-06 23:54 ` Elliott, Robert (Server Storage)
2014-11-08 13:26 ` Christoph Hellwig
2014-11-09 19:18 ` "Kai Mäkisara (Kolumbus)"
2014-10-30 9:27 ` [PATCH 5/6] osst: " Christoph Hellwig
2014-11-05 14:14 ` Hannes Reinecke
2014-11-05 14:31 ` Martin K. Petersen
2014-11-07 0:01 ` Elliott, Robert (Server Storage)
2014-10-30 9:27 ` [PATCH 6/6] scsi: return EAGAIN when resetting a device under EH Christoph Hellwig
2014-11-05 14:14 ` Hannes Reinecke
2014-11-05 14:33 ` Martin K. Petersen
2014-11-06 21:46 ` Elliott, Robert (Server Storage)
2014-11-06 22:55 ` Douglas Gilbert [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-10-27 17:59 misc scsi ioctl updates Christoph Hellwig
2014-10-27 17:59 ` [PATCH 6/6] scsi: return EAGAIN when resetting a device under EH Christoph Hellwig
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=545BFC68.2080705@interlog.com \
--to=dgilbert@interlog.com \
--cc=Elliott@hp.com \
--cc=hch@lst.de \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox