]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - block/blk-mq.c
blk-mq: refactor blk_mq_sched_assign_ioc
authorChristoph Hellwig <hch@lst.de>
Fri, 16 Jun 2017 16:15:25 +0000 (18:15 +0200)
committerJens Axboe <axboe@kernel.dk>
Sun, 18 Jun 2017 16:08:55 +0000 (10:08 -0600)
commit44e8c2bff80bb384a608406009948f90a78bf8a3
tree416c4aea5fb5c635bdc94170b8fb14ab284f21a4
parent9f2107382636cf9a71951eb71ec04f2fb3641b37
blk-mq: refactor blk_mq_sched_assign_ioc

blk_mq_sched_assign_ioc now only handles the assigned of the ioc if
the schedule needs it (bfq only at the moment).  The caller to the
per-request initializer is moved out so that it can be merged with
a similar call for the kyber I/O scheduler.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-sched.c
block/blk-mq-sched.h
block/blk-mq.c