Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9afccc5 authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

scsi: return EAGAIN when resetting a device under EH

parent 2b3b3d61
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;