patch-1.3.78 linux/include/linux/blk.h

Next file: linux/include/linux/blkdev.h
Previous file: linux/include/linux/binfmts.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.77/linux/include/linux/blk.h linux/include/linux/blk.h
@@ -319,6 +319,8 @@
 #define CURRENT (blk_dev[MAJOR_NR].current_request)
 #endif
 
+#define CURRENT_PLUGGED IS_PLUGGED(blk_dev+MAJOR_NR)
+
 #define CURRENT_DEV DEVICE_NR(CURRENT->rq_dev)
 
 #ifdef DEVICE_INTR
@@ -356,7 +358,7 @@
 #endif
 
 #define INIT_REQUEST \
-	if (!CURRENT) {\
+	if (!CURRENT || CURRENT_PLUGGED) {\
 		CLEAR_INTR; \
 		return; \
 	} \

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this