]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
[mpt2sas] Perform Target Reset instead of HBA reset when a SATA_PASSTHROUGH cmd
authorNagalakshmi Nandigama <nagalakshmi.nandigama@lsi.com>
Mon, 7 May 2012 20:27:49 +0000 (13:27 -0700)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Wed, 9 May 2012 00:32:33 +0000 (17:32 -0700)
timeout happens

Orabug: 14040678
Signed-off-by: Nagalakshmi Nandigama <nagalakshmi.nandigama@lsi.com>
Signed-off-by: Maxim Uvarov <maxim.uvarov@oracle.com>
drivers/scsi/mpt2sas/mpt2sas_ctl.c

index 41e3520c3399faabfcd5efd7a71ae2f59c39d444..b4e8d8f3958881c1a3f2958984d899370e0dfa32 100644 (file)
@@ -979,7 +979,8 @@ _ctl_do_mpt_command(struct MPT2SAS_ADAPTER *ioc, struct mpt2_ioctl_command karg,
                ret = -ENODATA;
                if ((mpi_request->Function == MPI2_FUNCTION_SCSI_IO_REQUEST ||
                    mpi_request->Function ==
-                   MPI2_FUNCTION_RAID_SCSI_IO_PASSTHROUGH)) {
+                   MPI2_FUNCTION_RAID_SCSI_IO_PASSTHROUGH ||
+                   mpi_request->Function == MPI2_FUNCTION_SATA_PASSTHROUGH)) {
                        printk(MPT2SAS_INFO_FMT "issue target reset: handle "
                            "= (0x%04x)\n", ioc->name,
                            le16_to_cpu(mpi_request->FunctionDependent1));