[SCSI] mpt2sas: Default descriptor for RAID Passthru command.
authorKashyap, Desai <kashyap.desai@lsi.com>
Wed, 17 Mar 2010 10:57:25 +0000 (16:27 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 11 Apr 2010 14:24:01 +0000 (09:24 -0500)
RAID_SCSI_IO_PASSTHROUGH: Driver needs to be send the default
descriptor for RAID Passthru, currently its sending SCSI_IO descriptor.

Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/mpt2sas/mpt2sas_scsih.c

index cfaefd10515d225356024e5899405a2a6558e6e6..4fdbb0bbfa0b9f41629d4fbe949b029963a2c215 100644 (file)
@@ -3045,8 +3045,11 @@ _scsih_qcmd(struct scsi_cmnd *scmd, void (*done)(struct scsi_cmnd *))
                }
        }
 
-       mpt2sas_base_put_smid_scsi_io(ioc, smid,
-           sas_device_priv_data->sas_target->handle);
+       if (likely(mpi_request->Function == MPI2_FUNCTION_SCSI_IO_REQUEST))
+               mpt2sas_base_put_smid_scsi_io(ioc, smid,
+                   sas_device_priv_data->sas_target->handle);
+       else
+               mpt2sas_base_put_smid_default(ioc, smid);
        return 0;
 
  out: