aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2015-04-17 16:37:17 -0400
committerJens Axboe <axboe@fb.com>2015-05-05 15:40:05 -0400
commitb42171ef7d938a66fa52e66a3d911ed63770b5ca (patch)
tree71111507d961b572397dd453d8b9435d61eeacb2 /include/linux/blkdev.h
parent4f8c9510ba71bb54477841bebb90154ef140860f (diff)
block: move REQ_TYPE_ATA_TASKFILE and REQ_TYPE_ATA_PC to ide.h
These values are only used by the IDE driver, so move them into it by allowing drivers to take cmd_type values after the first private one. Note that we have to turn cmd_type into a plain unsigned integer so that gcc doesn't complain about mismatching enum types. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 98c90272443b..9cb4d80a4987 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -79,14 +79,7 @@ enum rq_cmd_type_bits {
79 REQ_TYPE_PM_SUSPEND, /* suspend request */ 79 REQ_TYPE_PM_SUSPEND, /* suspend request */
80 REQ_TYPE_PM_RESUME, /* resume request */ 80 REQ_TYPE_PM_RESUME, /* resume request */
81 REQ_TYPE_PM_SHUTDOWN, /* shutdown request */ 81 REQ_TYPE_PM_SHUTDOWN, /* shutdown request */
82 REQ_TYPE_DRV_PRIV, /* driver defined type */ 82 REQ_TYPE_DRV_PRIV, /* driver defined types from here */
83 /*
84 * for ATA/ATAPI devices. this really doesn't belong here, ide should
85 * use REQ_TYPE_DRV_PRIV and use rq->cmd[0] with the range of driver
86 * private REQ_LB opcodes to differentiate what type of request this is
87 */
88 REQ_TYPE_ATA_TASKFILE,
89 REQ_TYPE_ATA_PC,
90}; 83};
91 84
92#define BLK_MAX_CDB 16 85#define BLK_MAX_CDB 16
@@ -108,7 +101,7 @@ struct request {
108 struct blk_mq_ctx *mq_ctx; 101 struct blk_mq_ctx *mq_ctx;
109 102
110 u64 cmd_flags; 103 u64 cmd_flags;
111 enum rq_cmd_type_bits cmd_type; 104 unsigned cmd_type;
112 unsigned long atomic_flags; 105 unsigned long atomic_flags;
113 106
114 int cpu; 107 int cpu;