diff options
| -rw-r--r-- | drivers/scsi/mpt2sas/mpt2sas_scsih.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/scsi/mpt2sas/mpt2sas_scsih.c b/drivers/scsi/mpt2sas/mpt2sas_scsih.c index e19dfde72066..5055f925d2cd 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_scsih.c +++ b/drivers/scsi/mpt2sas/mpt2sas_scsih.c | |||
| @@ -3950,9 +3950,9 @@ _scsih_setup_direct_io(struct MPT2SAS_ADAPTER *ioc, struct scsi_cmnd *scmd, | |||
| 3950 | * SCSI_MLQUEUE_HOST_BUSY if the entire host queue is full | 3950 | * SCSI_MLQUEUE_HOST_BUSY if the entire host queue is full |
| 3951 | */ | 3951 | */ |
| 3952 | static int | 3952 | static int |
| 3953 | _scsih_qcmd_lck(struct scsi_cmnd *scmd, void (*done)(struct scsi_cmnd *)) | 3953 | _scsih_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *scmd) |
| 3954 | { | 3954 | { |
| 3955 | struct MPT2SAS_ADAPTER *ioc = shost_priv(scmd->device->host); | 3955 | struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); |
| 3956 | struct MPT2SAS_DEVICE *sas_device_priv_data; | 3956 | struct MPT2SAS_DEVICE *sas_device_priv_data; |
| 3957 | struct MPT2SAS_TARGET *sas_target_priv_data; | 3957 | struct MPT2SAS_TARGET *sas_target_priv_data; |
| 3958 | struct _raid_device *raid_device; | 3958 | struct _raid_device *raid_device; |
| @@ -3960,7 +3960,6 @@ _scsih_qcmd_lck(struct scsi_cmnd *scmd, void (*done)(struct scsi_cmnd *)) | |||
| 3960 | u32 mpi_control; | 3960 | u32 mpi_control; |
| 3961 | u16 smid; | 3961 | u16 smid; |
| 3962 | 3962 | ||
| 3963 | scmd->scsi_done = done; | ||
| 3964 | sas_device_priv_data = scmd->device->hostdata; | 3963 | sas_device_priv_data = scmd->device->hostdata; |
| 3965 | if (!sas_device_priv_data || !sas_device_priv_data->sas_target) { | 3964 | if (!sas_device_priv_data || !sas_device_priv_data->sas_target) { |
| 3966 | scmd->result = DID_NO_CONNECT << 16; | 3965 | scmd->result = DID_NO_CONNECT << 16; |
| @@ -4036,7 +4035,7 @@ _scsih_qcmd_lck(struct scsi_cmnd *scmd, void (*done)(struct scsi_cmnd *)) | |||
| 4036 | MPT_TARGET_FLAGS_RAID_COMPONENT) | 4035 | MPT_TARGET_FLAGS_RAID_COMPONENT) |
| 4037 | mpi_request->Function = MPI2_FUNCTION_RAID_SCSI_IO_PASSTHROUGH; | 4036 | mpi_request->Function = MPI2_FUNCTION_RAID_SCSI_IO_PASSTHROUGH; |
| 4038 | else | 4037 | else |
| 4039 | mpi_request->Function = MPI2_FUNCTION_SCSI_IO_REQUEST; | 4038 | mpi_request->Function = MPI2_FUNCTION_SCSI_IO_REQUEST; |
| 4040 | mpi_request->DevHandle = | 4039 | mpi_request->DevHandle = |
| 4041 | cpu_to_le16(sas_device_priv_data->sas_target->handle); | 4040 | cpu_to_le16(sas_device_priv_data->sas_target->handle); |
| 4042 | mpi_request->DataLength = cpu_to_le32(scsi_bufflen(scmd)); | 4041 | mpi_request->DataLength = cpu_to_le32(scsi_bufflen(scmd)); |
| @@ -4080,8 +4079,6 @@ _scsih_qcmd_lck(struct scsi_cmnd *scmd, void (*done)(struct scsi_cmnd *)) | |||
| 4080 | return SCSI_MLQUEUE_HOST_BUSY; | 4079 | return SCSI_MLQUEUE_HOST_BUSY; |
| 4081 | } | 4080 | } |
| 4082 | 4081 | ||
| 4083 | static DEF_SCSI_QCMD(_scsih_qcmd) | ||
| 4084 | |||
| 4085 | /** | 4082 | /** |
| 4086 | * _scsih_normalize_sense - normalize descriptor and fixed format sense data | 4083 | * _scsih_normalize_sense - normalize descriptor and fixed format sense data |
| 4087 | * @sense_buffer: sense data returned by target | 4084 | * @sense_buffer: sense data returned by target |
