aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_scsi.c
diff options
context:
space:
mode:
authorJamie Wellnitz <Jamie.Wellnitz@emulex.com>2006-02-28 22:33:12 -0500
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-03-06 10:47:46 -0500
commitb808608bd7afdf1b0a2eb096ff2b5b93781fdbb6 (patch)
treec09a1b80000231144129ef988c259117e55630aa /drivers/scsi/lpfc/lpfc_scsi.c
parent66a9ed66000d186933892ca5121e68a071d624ac (diff)
[PATCH] lpfc 8.1.3: Fix polling mode panic
Fix polling mode panic Cause: Race between interrupt driven and polling path in harvesting iocbs from the response ring. Signed-off-by: Jamie Wellnitz <Jamie.Wellnitz@emulex.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_scsi.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_scsi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c
index 094f18f1fa05..f93799873721 100644
--- a/drivers/scsi/lpfc/lpfc_scsi.c
+++ b/drivers/scsi/lpfc/lpfc_scsi.c
@@ -467,6 +467,11 @@ lpfc_scsi_cmd_iocb_cmpl(struct lpfc_hba *phba, struct lpfc_iocbq *pIocbIn,
467 sdev = cmd->device; 467 sdev = cmd->device;
468 cmd->scsi_done(cmd); 468 cmd->scsi_done(cmd);
469 469
470 if (phba->cfg_poll & ENABLE_FCP_RING_POLLING) {
471 lpfc_release_scsi_buf(phba, lpfc_cmd);
472 return;
473 }
474
470 if (!result && pnode != NULL && 475 if (!result && pnode != NULL &&
471 ((jiffies - pnode->last_ramp_up_time) > 476 ((jiffies - pnode->last_ramp_up_time) >
472 LPFC_Q_RAMP_UP_INTERVAL * HZ) && 477 LPFC_Q_RAMP_UP_INTERVAL * HZ) &&