summaryrefslogtreecommitdiffstats
path: root/block/bsg.c
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2019-10-25 18:50:09 +0200
committerJens Axboe <axboe@kernel.dk>2019-10-25 22:12:18 +0200
commitac0d6b926e741f328b23c8af0134312af7c032d9 (patch)
tree86ed35737eabb038778c10c87714d0ac1041fc7e /block/bsg.c
parentblock: Remove the synchronize_rcu() call from __blk_mq_update_nr_hw_queues() (diff)
downloadlinux-ac0d6b926e741f328b23c8af0134312af7c032d9.tar.xz
linux-ac0d6b926e741f328b23c8af0134312af7c032d9.zip
block: Reduce the amount of memory required per request queue
Instead of always allocating at least nr_cpu_ids hardware queues per request queue, reallocate q->queue_hw_ctx if it has to grow. This patch improves behavior that was introduced by commit 868f2f0b7206 ("blk-mq: dynamic h/w context count"). Cc: Keith Busch <keith.busch@intel.com> Cc: Christoph Hellwig <hch@infradead.org> Cc: Ming Lei <ming.lei@redhat.com> Cc: Hannes Reinecke <hare@suse.com> Cc: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bsg.c')
0 files changed, 0 insertions, 0 deletions