patch-1.3.28 linux/include/linux/blkdev.h

Next file: linux/include/linux/fd.h
Previous file: linux/include/asm-i386/irq.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.27/linux/include/linux/blkdev.h linux/include/linux/blkdev.h
@@ -12,7 +12,14 @@
  * for read/write completion.
  */
 struct request {
-	int dev;		/* -1 if no request */
+	volatile int rq_status;	/* should split this into a few status bits */
+#define RQ_INACTIVE		(-1)
+#define RQ_ACTIVE		1
+#define RQ_SCSI_BUSY		0xffff
+#define RQ_SCSI_DONE		0xfffe
+#define RQ_SCSI_DISCONNECTING	0xffe0
+
+	kdev_t rq_dev;
 	int cmd;		/* READ or WRITE */
 	int errors;
 	unsigned long sector;

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