Browse Source

[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>
Kashyap, Desai 15 years ago
parent
commit
b2ff36ba19
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/scsi/mpt2sas/mpt2sas_ctl.c

+ 1 - 0
drivers/scsi/mpt2sas/mpt2sas_ctl.c

@@ -891,6 +891,7 @@ _ctl_do_mpt_command(struct MPT2SAS_ADAPTER *ioc,
 
 
  issue_host_reset:
  issue_host_reset:
 	if (issue_reset) {
 	if (issue_reset) {
+		ret = -ENODATA;
 		if ((mpi_request->Function == MPI2_FUNCTION_SCSI_IO_REQUEST ||
 		if ((mpi_request->Function == MPI2_FUNCTION_SCSI_IO_REQUEST ||
 		    mpi_request->Function ==
 		    mpi_request->Function ==
 		    MPI2_FUNCTION_RAID_SCSI_IO_PASSTHROUGH)) {
 		    MPI2_FUNCTION_RAID_SCSI_IO_PASSTHROUGH)) {