From: akpm@osdl.org Subject: [patch 44/45] scsi: ips soft lockup during reset initialization Date: Fri, 20 Oct 2006 14:48:39 -0700 Message-ID: <200610202148.k9KLmdUi004207@shell0.pdx.osdl.net> Return-path: Received: from smtp.osdl.org ([65.172.181.4]:17543 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S2992752AbWJTVtb (ORCPT ); Fri, 20 Oct 2006 17:49:31 -0400 Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: James.Bottomley@steeleye.com Cc: linux-scsi@vger.kernel.org, akpm@osdl.org, jack_hammer@adaptec.com, nacc@us.ibm.com, nickpiggin@yahoo.com.au From: Andrew Morton Resetting the adapter causes the ServeRAID driver to exceed the max time allowed by the softlock watchdog. Resetting the hardware can easily require 30 or more seconds. To avoid the "BUG: soft lockup detected on CPU#0!" result, this patch adds a touch_nmi_watchdog() to the driver's MDELAY macro. Cc: Nishanth Aravamudan Cc: Nick Piggin Acked-by: Jack Hammer Signed-off-by: Andrew Morton --- drivers/scsi/ips.h | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff -puN drivers/scsi/ips.h~scsi-ips-soft-lockup-during-reset-initialization-2 drivers/scsi/ips.h --- a/drivers/scsi/ips.h~scsi-ips-soft-lockup-during-reset-initialization-2 +++ a/drivers/scsi/ips.h @@ -51,6 +51,7 @@ #define _IPS_H_ #include +#include #include #include @@ -116,9 +117,11 @@ dev_printk(level , &((pcidev)->dev) , format , ## arg) #endif - #ifndef MDELAY - #define MDELAY mdelay - #endif + #define MDELAY(n) \ + do { \ + mdelay(n); \ + touch_nmi_watchdog(); \ + } while (0) #ifndef min #define min(x,y) ((x) < (y) ? x : y) _