diff options
author | James Smart <james.smart@emulex.com> | 2013-03-01 16:35:12 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-04-09 14:21:58 -0700 |
commit | 0e9bb8d79c52ca115f3fc4a692ca0dd6931e2eeb (patch) | |
tree | ca868fc67d44fbcff55e449f00ee4a4142098740 /drivers/scsi/lpfc/lpfc_bsg.c | |
parent | d4a2618fa77b5e58ec15342972bd3505a1c3f551 (diff) | |
download | linux-0e9bb8d79c52ca115f3fc4a692ca0dd6931e2eeb.tar.gz linux-0e9bb8d79c52ca115f3fc4a692ca0dd6931e2eeb.tar.bz2 linux-0e9bb8d79c52ca115f3fc4a692ca0dd6931e2eeb.zip |
[SCSI] lpfc 8.3.38: Fixed NMI watch dog panic's when resetting the hba.
Fixed NMI watch dog panic's when resetting the hba.
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_bsg.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_bsg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_bsg.c b/drivers/scsi/lpfc/lpfc_bsg.c index 32d5683e6181..18d3b69963ab 100644 --- a/drivers/scsi/lpfc/lpfc_bsg.c +++ b/drivers/scsi/lpfc/lpfc_bsg.c @@ -1559,7 +1559,7 @@ lpfc_bsg_diag_mode_enter(struct lpfc_hba *phba) scsi_block_requests(shost); } - while (pring->txcmplq_cnt) { + while (!list_empty(&pring->txcmplq)) { if (i++ > 500) /* wait up to 5 seconds */ break; msleep(10); |