projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7384b2
)
[SCSI] mpt2sas: Return -ENODATA on IOCTL timeout
author
Kashyap, Desai
<kashyap.desai@lsi.com>
Wed, 16 Dec 2009 13:21:05 +0000
(18:51 +0530)
committer
James Bottomley
<James.Bottomley@suse.de>
Tue, 9 Feb 2010 00:19:38 +0000
(18:19 -0600)
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>
drivers/scsi/mpt2sas/mpt2sas_ctl.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/mpt2sas/mpt2sas_ctl.c
b/drivers/scsi/mpt2sas/mpt2sas_ctl.c
index 84a124f8e21f040a0313cdd037c156233ebc00b0..198ecdd849a424a6aa88a39188c014b71504621c 100644
(file)
--- 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)) {