Revert to Fedora kernel-2.6.17-1.2187_FC5 patched with vs2.0.2.1; there are too many...
[linux-2.6.git] / include / linux / blkdev.h
index aafe827..59e1259 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef _LINUX_BLKDEV_H
 #define _LINUX_BLKDEV_H
 
+#include <linux/config.h>
 #include <linux/major.h>
 #include <linux/genhd.h>
 #include <linux/list.h>
@@ -151,9 +152,11 @@ struct request {
        void *elevator_private;
        void *completion_data;
 
+       unsigned short ioprio;
+
        int rq_status;  /* should split this into a few status bits */
-       int errors;
        struct gendisk *rq_disk;
+       int errors;
        unsigned long start_time;
 
        /* Number of scatter-gather DMA addr+len pairs after
@@ -168,9 +171,8 @@ struct request {
         */
        unsigned short nr_hw_segments;
 
-       unsigned short ioprio;
-
        int tag;
+       char *buffer;
 
        int ref_count;
        request_queue_t *q;
@@ -178,7 +180,6 @@ struct request {
 
        struct completion *waiting;
        void *special;
-       char *buffer;
 
        /*
         * when request is used as a packet command carrier
@@ -187,13 +188,19 @@ struct request {
        unsigned char cmd[BLK_MAX_CDB];
 
        unsigned int data_len;
-       unsigned int sense_len;
        void *data;
+
+       unsigned int sense_len;
        void *sense;
 
        unsigned int timeout;
        int retries;
 
+       /*
+        * For Power Management requests
+        */
+       struct request_pm_state *pm;
+
        /*
         * completion callback. end_io_data should be folded in with waiting
         */
@@ -235,7 +242,6 @@ enum rq_flag_bits {
        __REQ_PM_RESUME,        /* resume request */
        __REQ_PM_SHUTDOWN,      /* shutdown request */
        __REQ_ORDERED_COLOR,    /* is before or after barrier */
-       __REQ_RW_SYNC,          /* request is sync (O_DIRECT) */
        __REQ_NR_BITS,          /* stops here */
 };
 
@@ -265,7 +271,6 @@ enum rq_flag_bits {
 #define REQ_PM_RESUME  (1 << __REQ_PM_RESUME)
 #define REQ_PM_SHUTDOWN        (1 << __REQ_PM_SHUTDOWN)
 #define REQ_ORDERED_COLOR      (1 << __REQ_ORDERED_COLOR)
-#define REQ_RW_SYNC    (1 << __REQ_RW_SYNC)
 
 /*
  * State information carried for REQ_PM_SUSPEND and REQ_PM_RESUME
@@ -434,6 +439,9 @@ struct request_queue
 
 #define RQ_INACTIVE            (-1)
 #define RQ_ACTIVE              1
+#define RQ_SCSI_BUSY           0xffff
+#define RQ_SCSI_DONE           0xfffe
+#define RQ_SCSI_DISCONNECTING  0xffe0
 
 #define QUEUE_FLAG_CLUSTER     0       /* cluster several segments into 1 */
 #define QUEUE_FLAG_QUEUED      1       /* uses generic tag queueing */