]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq-sched: provide hooks for initializing hardware queue data
authorOmar Sandoval <osandov@fb.com>
Wed, 5 Apr 2017 19:01:34 +0000 (12:01 -0700)
committerJens Axboe <axboe@fb.com>
Fri, 7 Apr 2017 18:45:41 +0000 (12:45 -0600)
commitc144702c0cf29efa04974b41f078f17ccd1d7443
treeefccc4a63eeb010d8adaf27322745407df052f62
parent8c5394fd358d93f54f364dac9be05c9bd8bf51a2
blk-mq-sched: provide hooks for initializing hardware queue data

Schedulers need to be informed when a hardware queue is added or removed
at runtime so they can allocate/free per-hardware queue data. So,
replace the blk_mq_sched_init_hctx_data() helper, which only makes sense
at init time, with .init_hctx() and .exit_hctx() hooks.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq-sched.c
block/blk-mq-sched.h
include/linux/elevator.h