mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
scsi: qla2xxx: Fix driver unload hang
commitdd322b7f3eupstream. This patch fixes driver unload hang by removing msleep() Fixes:d74595278f("scsi: qla2xxx: Add multiple queue pair functionality.") Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20191105150657.8092-5-hmadhani@marvell.com Reviewed-by: Ewan D. Milne <emilne@redhat.com> Signed-off-by: Quinn Tran <qutran@marvell.com> Signed-off-by: Himanshu Madhani <hmadhani@marvell.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
b7abcc7df5
commit
5cb5b67480
@@ -9021,8 +9021,6 @@ int qla2xxx_delete_qpair(struct scsi_qla_host *vha, struct qla_qpair *qpair)
|
||||
struct qla_hw_data *ha = qpair->hw;
|
||||
|
||||
qpair->delete_in_progress = 1;
|
||||
while (atomic_read(&qpair->ref_count))
|
||||
msleep(500);
|
||||
|
||||
ret = qla25xx_delete_req_que(vha, qpair->req);
|
||||
if (ret != QLA_SUCCESS)
|
||||
|
||||
Reference in New Issue
Block a user