mpt2sas: Convert to host_lock less w/ interrupts disabled externally
PATCH 6/11 mpt2sas: Convert to host_lock less w/ interrupts disabled externally
From: Nicholas Bellinger <[email protected]>
This patch converts the mpt2sas driver to run in host_lock less mode with the new IRQ_DISABLE_SCSI_QCMD() that disables interrupts while calling ->queuecommand() dispatch
Signed-off-by Nicholas A. Bellinger <[email protected]>
--- drivers/scsi/mpt2sas/mpt2sas_scsih.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/scsi/mpt2sas/mpt2sas_scsih.c +3 -3
@@ -3304,7 +3304,7 @@ _scsih_eedp_error_handling(struct scsi_cmnd *scmd, u16 ioc_status) }/** -* _scsih_qcmd - main scsi request entry point +* _scsih_qcmd_irq_disable - main scsi request entry point * @scmd: pointer to scsi command object * @done: function pointer to be invoked on completion *
@@ -3315,7 +3315,7 @@ _scsih_eedp_error_handling(struct scsi_cmnd *scmd, u16 ioc_status)* SCSI_MLQUEUE_HOST_BUSY if the entire host queue is full */ static int -_scsih_qcmd_lck (struct scsi_cmnd *scmd,void (*done)(struct scsi_cmnd *)) +_scsih_qcmd_irq_disable (struct scsi_cmnd *scmd,void (*done)(struct scsi_cmnd *)) {struct MPT2SAS_ADAPTER *ioc =shost_priv (scmd->device->host);struct MPT2SAS_DEVICE *sas_device_priv_data;
@@ -3441,7 +3441,7 @@ _scsih_qcmd_lck(struct scsi_cmnd *scmd, void (*done)(struct scsi_cmnd *))return SCSI_MLQUEUE_HOST_BUSY ; } -static DEF_SCSI_QCMD (_scsih_qcmd) +static IRQ_DISABLE_SCSI_QCMD (_scsih_qcmd)/** * _scsih_normalize_sense - normalize descriptor and fixed format sense data
Signature · 1 line
1.7.2.3