summaryrefslogtreecommitdiffstats
path: root/block/blk-mq-sched.h
diff options
context:
space:
mode:
authorOmar Sandoval <osandov@fb.com>2017-04-05 21:01:34 +0200
committerJens Axboe <axboe@fb.com>2017-04-07 20:45:41 +0200
commitee056f98126170ca8b16b9a4a6e20aae7c5c184e (patch)
treeefccc4a63eeb010d8adaf27322745407df052f62 /block/blk-mq-sched.h
parentMerge branch 'for-linus' into for-4.12/block (diff)
downloadlinux-ee056f98126170ca8b16b9a4a6e20aae7c5c184e.tar.xz
linux-ee056f98126170ca8b16b9a4a6e20aae7c5c184e.zip
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>
Diffstat (limited to 'block/blk-mq-sched.h')
-rw-r--r--block/blk-mq-sched.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/block/blk-mq-sched.h b/block/blk-mq-sched.h
index 3a9e6e40558b..f4bc186c3440 100644
--- a/block/blk-mq-sched.h
+++ b/block/blk-mq-sched.h
@@ -4,10 +4,6 @@
#include "blk-mq.h"
#include "blk-mq-tag.h"
-int blk_mq_sched_init_hctx_data(struct request_queue *q, size_t size,
- int (*init)(struct blk_mq_hw_ctx *),
- void (*exit)(struct blk_mq_hw_ctx *));
-
void blk_mq_sched_free_hctx_data(struct request_queue *q,
void (*exit)(struct blk_mq_hw_ctx *));