summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_bsg.c
diff options
context:
space:
mode:
authorJames Smart <james.smart@emulex.com>2013-03-01 16:35:12 -0500
committerJames Bottomley <JBottomley@Parallels.com>2013-04-09 14:21:58 -0700
commit0e9bb8d79c52ca115f3fc4a692ca0dd6931e2eeb (patch)
treeca868fc67d44fbcff55e449f00ee4a4142098740 /drivers/scsi/lpfc/lpfc_bsg.c
parentd4a2618fa77b5e58ec15342972bd3505a1c3f551 (diff)
downloadblackbird-op-linux-0e9bb8d79c52ca115f3fc4a692ca0dd6931e2eeb.tar.gz
blackbird-op-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.c2
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);
OpenPOWER on IntegriCloud