Message ID | 1540317603-6329-1-git-send-email-William.Kuzeja@stratus.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | [RESEND] Timeouts occur on QLogic adapter surprise removal | expand |
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index dba672f..af57f05 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c @@ -1804,6 +1804,12 @@ uint32_t qla2x00_isp_reg_stat(struct qla_hw_data *ha) spin_lock_irqsave (qp->qp_lock_ptr, flags); } + /* + * Get rid of extra reference caused by early + * exit from qla2xxx_eh_abort + */ + if (status == FAST_IO_FAIL) + atomic_dec(&sp->ref_count); } sp->done(sp, res); break;