diff options
author | James Smart <James.Smart@Emulex.Com> | 2006-07-06 15:49:16 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-07-09 11:18:28 -0400 |
commit | 5a0e326dfa6d87a1ac6929a7d6d327e8803b7aef (patch) | |
tree | 3d257f038e84f46051666b279289b3393cc06a66 | |
parent | dc22f16d4e46cee699c3835cc6e2a8005023517f (diff) |
[SCSI] lpfc 8.1.7: Use mod_timer instead of add_timer in lpfc_els_timeout_handler
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>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-rw-r--r-- | drivers/scsi/lpfc/lpfc_els.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c index 4126fd87956f..cac9e870838a 100644 --- a/drivers/scsi/lpfc/lpfc_els.c +++ b/drivers/scsi/lpfc/lpfc_els.c | |||
@@ -3282,10 +3282,9 @@ lpfc_els_timeout_handler(struct lpfc_hba *phba) | |||
3282 | } else | 3282 | } else |
3283 | lpfc_sli_release_iocbq(phba, piocb); | 3283 | lpfc_sli_release_iocbq(phba, piocb); |
3284 | } | 3284 | } |
3285 | if (phba->sli.ring[LPFC_ELS_RING].txcmplq_cnt) { | 3285 | if (phba->sli.ring[LPFC_ELS_RING].txcmplq_cnt) |
3286 | phba->els_tmofunc.expires = jiffies + HZ * timeout; | 3286 | mod_timer(&phba->els_tmofunc, jiffies + HZ * timeout); |
3287 | add_timer(&phba->els_tmofunc); | 3287 | |
3288 | } | ||
3289 | spin_unlock_irq(phba->host->host_lock); | 3288 | spin_unlock_irq(phba->host->host_lock); |
3290 | } | 3289 | } |
3291 | 3290 | ||