[PATCH] lpfc: Fix timer related panic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a re-send of a patch I sent out a couple months ago.  It fixes a
panic in the timeout handler when I have lots of devices being
configured.

Signed-of-by: Mark Haverkamp <markh@xxxxxxxx>

---

Applies to scsi-misc-2.6

--- scsi-misc-2.6.orig/drivers/scsi/lpfc/lpfc_els.c	2006-03-13 13:28:18.000000000 -0800
+++ scsi-misc-2.6/drivers/scsi/lpfc/lpfc_els.c	2006-03-15 14:00:38.000000000 -0800
@@ -3270,8 +3270,7 @@
 			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);
+		mod_timer(&phba->els_tmofunc, jiffies + HZ * timeout);
 	}
 	spin_unlock_irq(phba->host->host_lock);
 }


-- 
Mark Haverkamp <markh@xxxxxxxx>

-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux