blk-mq: cleanup and improve list insertion
authorJens Axboe <axboe@kernel.dk>
Tue, 30 Oct 2018 17:31:51 +0000 (11:31 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 Nov 2018 20:44:59 +0000 (13:44 -0700)
commit67cae4c948a5311121905a2a8740c50daf7f6478
treee4d994179f16751b95f0080392844c6817a0e539
parentea4f995ee8b8f0578b3319949f2edd5d812fdb0a
blk-mq: cleanup and improve list insertion

It's somewhat strange to have a list insertion function that
relies on the fact that the caller has mapped things correctly.
Pass in the hardware queue directly for insertion, which makes
for a much cleaner interface and implementation.

Reviewed-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-sched.c
block/blk-mq-sched.h
block/blk-mq.c