diff options
author | Kashyap, Desai <kashyap.desai@lsi.com> | 2009-12-16 14:21:05 +0100 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-02-09 01:19:38 +0100 |
commit | b2ff36ba19dec02b05d3e26e36923b71ab64f34a (patch) | |
tree | 0568626a953ef4b8b9426a90fb09adb8597b3c08 /drivers/scsi/mpt2sas/mpt2sas_ctl.c | |
parent | [SCSI] mpt2sas: Delete volume before HBA detach. (diff) | |
download | linux-b2ff36ba19dec02b05d3e26e36923b71ab64f34a.tar.xz linux-b2ff36ba19dec02b05d3e26e36923b71ab64f34a.zip |
[SCSI] mpt2sas: Return -ENODATA on IOCTL timeout
The driver was modified to return -ENODATA when there is a timeout
via ioctl path.
Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Reviewed-by: Eric Moore <eric.moore@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpt2sas_ctl.c')
-rw-r--r-- | drivers/scsi/mpt2sas/mpt2sas_ctl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/mpt2sas/mpt2sas_ctl.c b/drivers/scsi/mpt2sas/mpt2sas_ctl.c index 84a124f8e21f..198ecdd849a4 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_ctl.c +++ b/drivers/scsi/mpt2sas/mpt2sas_ctl.c @@ -891,6 +891,7 @@ _ctl_do_mpt_command(struct MPT2SAS_ADAPTER *ioc, issue_host_reset: if (issue_reset) { + ret = -ENODATA; if ((mpi_request->Function == MPI2_FUNCTION_SCSI_IO_REQUEST || mpi_request->Function == MPI2_FUNCTION_RAID_SCSI_IO_PASSTHROUGH)) { |