Skip to contentSkip to conversation

mpt2sas: Return -ENODATA on IOCTL timeout

PATCH In review Kashyap, Desai 1 participant 1 message Dec 16, 2009 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 2/10 mpt2sas: Return -ENODATA on IOCTL timeout

The driver was modified to return -ENODATA when there is a timeout via ioctl path.

---

drivers/scsi/mpt2sas/mpt2sas_ctl.c +1 -0
index 84a124f..198ecdd 100644
@@ -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)) {