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 02:47:54 +0000 (19:47 -0700)
commit25c2fde205a800157ccd83c7f2446627b4f3491f
tree0ff2b03ab15cd3082a21a8b6ab613626a8666eab
parent2e14370ff495c0334a2c6d4d095e191d295e3553
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