aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mpt2sas
diff options
context:
space:
mode:
authorKashyap, Desai <kashyap.desai@lsi.com>2009-12-16 18:51:05 +0530
committerJames Bottomley <James.Bottomley@suse.de>2010-02-08 18:19:38 -0600
commitb2ff36ba19dec02b05d3e26e36923b71ab64f34a (patch)
tree0568626a953ef4b8b9426a90fb09adb8597b3c08 /drivers/scsi/mpt2sas
parentd7384b28afb2bf2b7be835ddc8c852bdc5e0ce1c (diff)
downloadkernel_samsung_espresso10-b2ff36ba19dec02b05d3e26e36923b71ab64f34a.zip
kernel_samsung_espresso10-b2ff36ba19dec02b05d3e26e36923b71ab64f34a.tar.gz
kernel_samsung_espresso10-b2ff36ba19dec02b05d3e26e36923b71ab64f34a.tar.bz2
[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')
-rw-r--r--drivers/scsi/mpt2sas/mpt2sas_ctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/mpt2sas/mpt2sas_ctl.c b/drivers/scsi/mpt2sas/mpt2sas_ctl.c
index 84a124f..198ecdd 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)) {