blk-mq: improve the blk_mq_init_allocated_queue interface
authorChristoph Hellwig <hch@lst.de>
Wed, 2 Jun 2021 06:53:17 +0000 (09:53 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 11 Jun 2021 17:53:02 +0000 (11:53 -0600)
commit26a9750aa875126e4b7fc5ee6de652a529c5b7ee
tree481f3adfb8068b423203091f4298f260c215473c
parentcdb14e0f7775e767484843e8ecd736bb21754c58
blk-mq: improve the blk_mq_init_allocated_queue interface

Don't return the passed in request_queue but a normal error code, and
drop the elevator_init argument in favor of just calling elevator_init_mq
directly from dm-rq.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Link: https://lore.kernel.org/r/20210602065345.355274-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
block/blk.h
block/elevator.c
drivers/md/dm-rq.c
include/linux/blk-mq.h
include/linux/elevator.h