diff options
author | Mike Snitzer <snitzer@redhat.com> | 2014-12-16 18:54:25 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-01-28 17:44:33 +0100 |
commit | ad9cf3bbd18a94806314741ac8092c3422f5aebe (patch) | |
tree | 85b1b24402535ca8322495915b9e50fe3be7494d /block/bio.c | |
parent | block: keep established cmd_flags when cloning into a blk-mq request (diff) | |
download | linux-ad9cf3bbd18a94806314741ac8092c3422f5aebe.tar.xz linux-ad9cf3bbd18a94806314741ac8092c3422f5aebe.zip |
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 'block/bio.c')
0 files changed, 0 insertions, 0 deletions