diff options
author | Mike Snitzer <snitzer@redhat.com> | 2014-12-16 12:54:25 -0500 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-01-28 11:44:33 -0500 |
commit | ad9cf3bbd18a94806314741ac8092c3422f5aebe (patch) | |
tree | 85b1b24402535ca8322495915b9e50fe3be7494d /include/linux/blkdev.h | |
parent | 77a086890173c0958515f7322880e4680cf12f8e (diff) |
block: mark blk-mq devices as stackable
Commit 4ee5eaf4 ("block: add a queue flag for request stacking support")
introduced the concept of "STACKABLE" and blk-mq devices fit the
definition in that they establish q->request_fn. So establish
QUEUE_FLAG_STACKABLE in QUEUE_FLAG_MQ_DEFAULT.
While not strictly needed (DM _could_ just check for q->mq_ops to assume
the device is request-based), request-based DM support for blk-mq devices
benefits from the ability to consistently check for QUEUE_FLAG_STACKABLE
before allowing a device to be stacked into a request-based DM table.
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r-- | include/linux/blkdev.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 6f388fd1c11c..13e16401a7ce 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -520,6 +520,7 @@ struct request_queue { | |||
520 | (1 << QUEUE_FLAG_ADD_RANDOM)) | 520 | (1 << QUEUE_FLAG_ADD_RANDOM)) |
521 | 521 | ||
522 | #define QUEUE_FLAG_MQ_DEFAULT ((1 << QUEUE_FLAG_IO_STAT) | \ | 522 | #define QUEUE_FLAG_MQ_DEFAULT ((1 << QUEUE_FLAG_IO_STAT) | \ |
523 | (1 << QUEUE_FLAG_STACKABLE) | \ | ||
523 | (1 << QUEUE_FLAG_SAME_COMP)) | 524 | (1 << QUEUE_FLAG_SAME_COMP)) |
524 | 525 | ||
525 | static inline void queue_lockdep_assert_held(struct request_queue *q) | 526 | static inline void queue_lockdep_assert_held(struct request_queue *q) |