提交 e9afccc5 编写于 作者: C Christoph Hellwig

scsi: return EAGAIN when resetting a device under EH

Signed-off-by: NChristoph Hellwig <hch@lst.de>
Reviewed-by: NMartin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: NHannes Reinecke <hare@suse.de>
上级 2b3b3d61
...@@ -278,7 +278,7 @@ int scsi_ioctl_block_when_processing_errors(struct scsi_device *sdev, int cmd, ...@@ -278,7 +278,7 @@ int scsi_ioctl_block_when_processing_errors(struct scsi_device *sdev, int cmd,
{ {
if (cmd == SG_SCSI_RESET && ndelay) { if (cmd == SG_SCSI_RESET && ndelay) {
if (scsi_host_in_recovery(sdev->host)) if (scsi_host_in_recovery(sdev->host))
return -ENODEV; return -EAGAIN;
} else { } else {
if (!scsi_block_when_processing_errors(sdev)) if (!scsi_block_when_processing_errors(sdev))
return -ENODEV; return -ENODEV;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册