patch-2.1.31 linux/drivers/scsi/scsi.h

Next file: linux/drivers/scsi/sd.c
Previous file: linux/drivers/scsi/scsi.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.30/linux/drivers/scsi/scsi.h linux/drivers/scsi/scsi.h
@@ -550,7 +550,7 @@
 	for(;;) {			            \
 	current->state = TASK_UNINTERRUPTIBLE;	    \
 	if (CONDITION) {		            \
-            if (intr_count)	                    \
+            if (in_interrupt())	                    \
 	        panic("scsi: trying to call schedule() in interrupt" \
 		      ", file %s, line %d.\n", __FILE__, __LINE__);  \
 	    schedule();			\

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov