mpt3sas: Remove uses of serial_number
The mpt3sas_scsih_issue_tm() function does not use the 'serial_number' argument passed to it. Removing it removes the last vestiges of the scsi_cmnd's serial_number field from this driver. Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com> Reviewed-by: Nicholas Bellinger <nab@linux-iscsi.org> Reviewed-by: Praveen Krishnamoorthy <Praveen.krishnamoorthy@lsi.com> Acked-by: Sreekanth Reddy <Sreekanth.reddy@lsi.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
c1818f17b5
commit
c62e46de34
|
@ -993,7 +993,7 @@ void mpt3sas_scsih_reset_handler(struct MPT3SAS_ADAPTER *ioc, int reset_phase);
|
||||||
|
|
||||||
int mpt3sas_scsih_issue_tm(struct MPT3SAS_ADAPTER *ioc, u16 handle,
|
int mpt3sas_scsih_issue_tm(struct MPT3SAS_ADAPTER *ioc, u16 handle,
|
||||||
uint channel, uint id, uint lun, u8 type, u16 smid_task,
|
uint channel, uint id, uint lun, u8 type, u16 smid_task,
|
||||||
ulong timeout, unsigned long serial_number, enum mutex_type m_type);
|
ulong timeout, enum mutex_type m_type);
|
||||||
void mpt3sas_scsih_set_tm_flag(struct MPT3SAS_ADAPTER *ioc, u16 handle);
|
void mpt3sas_scsih_set_tm_flag(struct MPT3SAS_ADAPTER *ioc, u16 handle);
|
||||||
void mpt3sas_scsih_clear_tm_flag(struct MPT3SAS_ADAPTER *ioc, u16 handle);
|
void mpt3sas_scsih_clear_tm_flag(struct MPT3SAS_ADAPTER *ioc, u16 handle);
|
||||||
void mpt3sas_expander_remove(struct MPT3SAS_ADAPTER *ioc, u64 sas_address);
|
void mpt3sas_expander_remove(struct MPT3SAS_ADAPTER *ioc, u64 sas_address);
|
||||||
|
|
|
@ -980,7 +980,7 @@ _ctl_do_mpt_command(struct MPT3SAS_ADAPTER *ioc, struct mpt3_ioctl_command karg,
|
||||||
mpt3sas_scsih_issue_tm(ioc,
|
mpt3sas_scsih_issue_tm(ioc,
|
||||||
le16_to_cpu(mpi_request->FunctionDependent1), 0, 0,
|
le16_to_cpu(mpi_request->FunctionDependent1), 0, 0,
|
||||||
0, MPI2_SCSITASKMGMT_TASKTYPE_TARGET_RESET, 0, 30,
|
0, MPI2_SCSITASKMGMT_TASKTYPE_TARGET_RESET, 0, 30,
|
||||||
0, TM_MUTEX_ON);
|
TM_MUTEX_ON);
|
||||||
} else
|
} else
|
||||||
mpt3sas_base_hard_reset_handler(ioc, CAN_SLEEP,
|
mpt3sas_base_hard_reset_handler(ioc, CAN_SLEEP,
|
||||||
FORCE_BIG_HAMMER);
|
FORCE_BIG_HAMMER);
|
||||||
|
|
|
@ -2029,7 +2029,6 @@ mpt3sas_scsih_clear_tm_flag(struct MPT3SAS_ADAPTER *ioc, u16 handle)
|
||||||
* @type: MPI2_SCSITASKMGMT_TASKTYPE__XXX (defined in mpi2_init.h)
|
* @type: MPI2_SCSITASKMGMT_TASKTYPE__XXX (defined in mpi2_init.h)
|
||||||
* @smid_task: smid assigned to the task
|
* @smid_task: smid assigned to the task
|
||||||
* @timeout: timeout in seconds
|
* @timeout: timeout in seconds
|
||||||
* @serial_number: the serial_number from scmd
|
|
||||||
* @m_type: TM_MUTEX_ON or TM_MUTEX_OFF
|
* @m_type: TM_MUTEX_ON or TM_MUTEX_OFF
|
||||||
* Context: user
|
* Context: user
|
||||||
*
|
*
|
||||||
|
@ -2042,7 +2041,7 @@ mpt3sas_scsih_clear_tm_flag(struct MPT3SAS_ADAPTER *ioc, u16 handle)
|
||||||
int
|
int
|
||||||
mpt3sas_scsih_issue_tm(struct MPT3SAS_ADAPTER *ioc, u16 handle, uint channel,
|
mpt3sas_scsih_issue_tm(struct MPT3SAS_ADAPTER *ioc, u16 handle, uint channel,
|
||||||
uint id, uint lun, u8 type, u16 smid_task, ulong timeout,
|
uint id, uint lun, u8 type, u16 smid_task, ulong timeout,
|
||||||
unsigned long serial_number, enum mutex_type m_type)
|
enum mutex_type m_type)
|
||||||
{
|
{
|
||||||
Mpi2SCSITaskManagementRequest_t *mpi_request;
|
Mpi2SCSITaskManagementRequest_t *mpi_request;
|
||||||
Mpi2SCSITaskManagementReply_t *mpi_reply;
|
Mpi2SCSITaskManagementReply_t *mpi_reply;
|
||||||
|
@ -2293,8 +2292,7 @@ _scsih_abort(struct scsi_cmnd *scmd)
|
||||||
handle = sas_device_priv_data->sas_target->handle;
|
handle = sas_device_priv_data->sas_target->handle;
|
||||||
r = mpt3sas_scsih_issue_tm(ioc, handle, scmd->device->channel,
|
r = mpt3sas_scsih_issue_tm(ioc, handle, scmd->device->channel,
|
||||||
scmd->device->id, scmd->device->lun,
|
scmd->device->id, scmd->device->lun,
|
||||||
MPI2_SCSITASKMGMT_TASKTYPE_ABORT_TASK, smid, 30,
|
MPI2_SCSITASKMGMT_TASKTYPE_ABORT_TASK, smid, 30, TM_MUTEX_ON);
|
||||||
scmd->serial_number, TM_MUTEX_ON);
|
|
||||||
|
|
||||||
out:
|
out:
|
||||||
sdev_printk(KERN_INFO, scmd->device, "task abort: %s scmd(%p)\n",
|
sdev_printk(KERN_INFO, scmd->device, "task abort: %s scmd(%p)\n",
|
||||||
|
@ -2353,8 +2351,7 @@ _scsih_dev_reset(struct scsi_cmnd *scmd)
|
||||||
|
|
||||||
r = mpt3sas_scsih_issue_tm(ioc, handle, scmd->device->channel,
|
r = mpt3sas_scsih_issue_tm(ioc, handle, scmd->device->channel,
|
||||||
scmd->device->id, scmd->device->lun,
|
scmd->device->id, scmd->device->lun,
|
||||||
MPI2_SCSITASKMGMT_TASKTYPE_LOGICAL_UNIT_RESET, 0, 30, 0,
|
MPI2_SCSITASKMGMT_TASKTYPE_LOGICAL_UNIT_RESET, 0, 30, TM_MUTEX_ON);
|
||||||
TM_MUTEX_ON);
|
|
||||||
|
|
||||||
out:
|
out:
|
||||||
sdev_printk(KERN_INFO, scmd->device, "device reset: %s scmd(%p)\n",
|
sdev_printk(KERN_INFO, scmd->device, "device reset: %s scmd(%p)\n",
|
||||||
|
@ -2414,7 +2411,7 @@ _scsih_target_reset(struct scsi_cmnd *scmd)
|
||||||
|
|
||||||
r = mpt3sas_scsih_issue_tm(ioc, handle, scmd->device->channel,
|
r = mpt3sas_scsih_issue_tm(ioc, handle, scmd->device->channel,
|
||||||
scmd->device->id, 0, MPI2_SCSITASKMGMT_TASKTYPE_TARGET_RESET, 0,
|
scmd->device->id, 0, MPI2_SCSITASKMGMT_TASKTYPE_TARGET_RESET, 0,
|
||||||
30, 0, TM_MUTEX_ON);
|
30, TM_MUTEX_ON);
|
||||||
|
|
||||||
out:
|
out:
|
||||||
starget_printk(KERN_INFO, starget, "target reset: %s scmd(%p)\n",
|
starget_printk(KERN_INFO, starget, "target reset: %s scmd(%p)\n",
|
||||||
|
@ -5425,7 +5422,7 @@ _scsih_sas_broadcast_primitive_event(struct MPT3SAS_ADAPTER *ioc,
|
||||||
|
|
||||||
spin_unlock_irqrestore(&ioc->scsi_lookup_lock, flags);
|
spin_unlock_irqrestore(&ioc->scsi_lookup_lock, flags);
|
||||||
r = mpt3sas_scsih_issue_tm(ioc, handle, 0, 0, lun,
|
r = mpt3sas_scsih_issue_tm(ioc, handle, 0, 0, lun,
|
||||||
MPI2_SCSITASKMGMT_TASKTYPE_QUERY_TASK, smid, 30, 0,
|
MPI2_SCSITASKMGMT_TASKTYPE_QUERY_TASK, smid, 30,
|
||||||
TM_MUTEX_OFF);
|
TM_MUTEX_OFF);
|
||||||
if (r == FAILED) {
|
if (r == FAILED) {
|
||||||
sdev_printk(KERN_WARNING, sdev,
|
sdev_printk(KERN_WARNING, sdev,
|
||||||
|
@ -5467,7 +5464,7 @@ _scsih_sas_broadcast_primitive_event(struct MPT3SAS_ADAPTER *ioc,
|
||||||
|
|
||||||
r = mpt3sas_scsih_issue_tm(ioc, handle, sdev->channel, sdev->id,
|
r = mpt3sas_scsih_issue_tm(ioc, handle, sdev->channel, sdev->id,
|
||||||
sdev->lun, MPI2_SCSITASKMGMT_TASKTYPE_ABORT_TASK, smid, 30,
|
sdev->lun, MPI2_SCSITASKMGMT_TASKTYPE_ABORT_TASK, smid, 30,
|
||||||
scmd->serial_number, TM_MUTEX_OFF);
|
TM_MUTEX_OFF);
|
||||||
if (r == FAILED) {
|
if (r == FAILED) {
|
||||||
sdev_printk(KERN_WARNING, sdev,
|
sdev_printk(KERN_WARNING, sdev,
|
||||||
"mpt3sas_scsih_issue_tm: ABORT_TASK: FAILED : "
|
"mpt3sas_scsih_issue_tm: ABORT_TASK: FAILED : "
|
||||||
|
|
Loading…
Reference in New Issue