Skip to content

Commit

Permalink
scsi: qla2xxx: Fix driver unload hang
Browse files Browse the repository at this point in the history
This patch fixes driver unload hang by removing msleep()

Fixes: d745952 ("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>
  • Loading branch information
Quinn Tran authored and Martin K. Petersen committed Nov 9, 2019
1 parent af2a0c5 commit dd322b7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/scsi/qla2xxx/qla_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -9009,8 +9009,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)
Expand Down

0 comments on commit dd322b7

Please sign in to comment.