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
- Lines: 9
- Date:
Wed Apr 2 17:53:20 1997
- Orig file:
v2.1.30/linux/drivers/scsi/scsi.h
- Orig date:
Mon Dec 30 03:01:10 1996
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