public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/15] lpfc 8.1.7 : Use mod_timer instead of add_timer in lpfc_els_timeout_handler
@ 2006-07-06 19:49 James Smart
  0 siblings, 0 replies; only message in thread
From: James Smart @ 2006-07-06 19:49 UTC (permalink / raw)
  To: linux-scsi

Use mod_timer instead of add_timer in lpfc_els_timeout_handler

This patch was formerly posted by Mark Haverkamp.
http://marc.theaimsgroup.com/?l=linux-scsi&m=114246089015681&w=2

Signed-off-by: Mark Haverkamp <markh@osdl.org>
Signed-off-by: James Smart <James.Smart@emulex.com>

diff -upNr a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c
--- a/drivers/scsi/lpfc/lpfc_els.c	2006-07-05 14:49:02.000000000 -0400
+++ b/drivers/scsi/lpfc/lpfc_els.c	2006-07-06 12:14:54.000000000 -0400
@@ -3282,10 +3282,9 @@ lpfc_els_timeout_handler(struct lpfc_hba
 		} else
 			lpfc_sli_release_iocbq(phba, piocb);
 	}
-	if (phba->sli.ring[LPFC_ELS_RING].txcmplq_cnt) {
-		phba->els_tmofunc.expires = jiffies + HZ * timeout;
-		add_timer(&phba->els_tmofunc);
-	}
+	if (phba->sli.ring[LPFC_ELS_RING].txcmplq_cnt)
+		mod_timer(&phba->els_tmofunc, jiffies + HZ * timeout);
+
 	spin_unlock_irq(phba->host->host_lock);
 }
 



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-07-06 19:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-06 19:49 [PATCH 1/15] lpfc 8.1.7 : Use mod_timer instead of add_timer in lpfc_els_timeout_handler James Smart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox