Skip to content

Commit

Permalink
[SCSI] ips: fix soft lockup during reset initialization
Browse files Browse the repository at this point in the history
  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 <nacc@us.ibm.com>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Acked-by: Jack Hammer <jack_hammer@adaptec.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
  • Loading branch information
Andrew Morton authored and James Bottomley committed Nov 15, 2006
1 parent e5f82ab commit 297295a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions drivers/scsi/ips.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
#define _IPS_H_

#include <linux/version.h>
#include <linux/nmi.h>
#include <asm/uaccess.h>
#include <asm/io.h>

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 297295a

Please sign in to comment.