summaryrefslogtreecommitdiffstats
path: root/block/blk-mq.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-06-26 12:20:57 +0200
committerThomas Gleixner <tglx@linutronix.de>2017-06-28 23:00:07 +0200
commit4b855ad37194f7bdbb200ce7a1c7051fecb56a08 (patch)
treeca9c7d84a2632c602492171061bb83afb5fbe1a7 /block/blk-mq.h
parent5f042e7cbd9ebd3580077dcdc21f35e68c2adf5f (diff)
downloadop-kernel-dev-4b855ad37194f7bdbb200ce7a1c7051fecb56a08.zip
op-kernel-dev-4b855ad37194f7bdbb200ce7a1c7051fecb56a08.tar.gz
blk-mq: Create hctx for each present CPU
Currently we only create hctx for online CPUs, which can lead to a lot of churn due to frequent soft offline / online operations. Instead allocate one for each present CPU to avoid this and dramatically simplify the code. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Jens Axboe <axboe@kernel.dk> Cc: Keith Busch <keith.busch@intel.com> Cc: linux-block@vger.kernel.org Cc: linux-nvme@lists.infradead.org Link: http://lkml.kernel.org/r/20170626102058.10200-3-hch@lst.de Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'block/blk-mq.h')
-rw-r--r--block/blk-mq.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/block/blk-mq.h b/block/blk-mq.h
index cc67b48..558df56 100644
--- a/block/blk-mq.h
+++ b/block/blk-mq.h
@@ -56,11 +56,6 @@ void __blk_mq_insert_request(struct blk_mq_hw_ctx *hctx, struct request *rq,
bool at_head);
void blk_mq_insert_requests(struct blk_mq_hw_ctx *hctx, struct blk_mq_ctx *ctx,
struct list_head *list);
-/*
- * CPU hotplug helpers
- */
-void blk_mq_enable_hotplug(void);
-void blk_mq_disable_hotplug(void);
/*
* CPU -> queue mappings
OpenPOWER on IntegriCloud