Skip to content

Commit 5589b08

Browse files
Arun Easimartinkpetersen
authored andcommitted
scsi: qla2xxx: Fix hardlockup in abort command during driver remove
[436194.555537] NMI watchdog: Watchdog detected hard LOCKUP on cpu 5 [436194.555558] RIP: 0010:native_queued_spin_lock_slowpath+0x63/0x1e0 [436194.555563] Call Trace: [436194.555564] _raw_spin_lock_irqsave+0x30/0x40 [436194.555564] qla24xx_async_abort_command+0x29/0xd0 [qla2xxx] [436194.555565] qla24xx_abort_command+0x208/0x2d0 [qla2xxx] [436194.555565] __qla2x00_abort_all_cmds+0x16b/0x290 [qla2xxx] [436194.555565] qla2x00_abort_all_cmds+0x42/0x60 [qla2xxx] [436194.555566] qla2x00_abort_isp_cleanup+0x2bd/0x3a0 [qla2xxx] [436194.555566] qla2x00_remove_one+0x1ad/0x360 [qla2xxx] [436194.555566] pci_device_remove+0x3b/0xb0 Fixes: 219d27d (scsi: qla2xxx: Fix race conditions in the code for aborting SCSI commands) Cc: [email protected] # 5.2 Signed-off-by: Arun Easi <[email protected]> Signed-off-by: Himanshu Madhani <[email protected]> Reviewed-by: Bart Van Assche <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 24e2e7a commit 5589b08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/qla2xxx/qla_os.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1731,8 +1731,8 @@ static void qla2x00_abort_srb(struct qla_qpair *qp, srb_t *sp, const int res,
17311731
!test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags) &&
17321732
!qla2x00_isp_reg_stat(ha))) {
17331733
sp->comp = &comp;
1734-
rval = ha->isp_ops->abort_command(sp);
17351734
spin_unlock_irqrestore(qp->qp_lock_ptr, *flags);
1735+
rval = ha->isp_ops->abort_command(sp);
17361736

17371737
switch (rval) {
17381738
case QLA_SUCCESS:

0 commit comments

Comments
 (0)