• M
    block: mark blk-mq devices as stackable · ad9cf3bb
    Mike Snitzer 提交于
    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: NMike Snitzer <snitzer@redhat.com>
    Signed-off-by: NJens Axboe <axboe@fb.com>
    ad9cf3bb
blkdev.h 47.5 KB