]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: Create hctx for each present CPU
authorChristoph Hellwig <hch@lst.de>
Mon, 26 Jun 2017 10:20:57 +0000 (12:20 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 28 Jun 2017 21:00:07 +0000 (23:00 +0200)
commit283a20aabf285f62321f4ad475cbd637280f414d
treeca9c7d84a2632c602492171061bb83afb5fbe1a7
parent0fbd1c06a5180c213f50712e879a73d54de1ff4e
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>
block/blk-mq.c
block/blk-mq.h
include/linux/cpuhotplug.h