commit | ee056f98126170ca8b16b9a4a6e20aae7c5c184e | [log] [tgz] |
---|---|---|
author | Omar Sandoval <osandov@fb.com> | Wed Apr 05 12:01:34 2017 -0700 |
committer | Jens Axboe <axboe@fb.com> | Fri Apr 07 12:45:41 2017 -0600 |
tree | efccc4a63eeb010d8adaf27322745407df052f62 | |
parent | 65f619d2535197d97067eeeef75a40f25b552e69 [diff] |
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>