mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
scsi: return EAGAIN when resetting a device under EH
Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Reviewed-by: Hannes Reinecke <hare@suse.de>
This commit is contained in:
parent
2b3b3d61e8
commit
e9afccc524
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user