]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - block/bsg.c
bsg: update check for rq based driver for blk-mq
authorJens Axboe <axboe@fb.com>
Wed, 16 Apr 2014 16:57:18 +0000 (10:57 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 16 Apr 2014 20:15:46 +0000 (14:15 -0600)
commit49fd524f95cb4cc699d435e0ebb08b1c6220da6d
tree1e9c2d2bdc14a6acaaf57b2f127fadea81528aec
parentfb1be43301ce045b5e563416e701573464a2ed96
bsg: update check for rq based driver for blk-mq

bsg currently checks ->request_fn to check whether a queue can
handle struct request. But with blk-mq, we don't have a request_fn
yet are request based. Add a queue_is_rq_based() helper and use
that in bsg, I'm guessing this is not the last place we need to
update for this. Besides, it better explains what is being
checked.

Signed-off-by: Jens Axboe <axboe@fb.com>
block/bsg.c
include/linux/blkdev.h