]> www.infradead.org Git - users/jedix/linux-maple.git/commit
blk-mq: remap queues when adding/removing hardware queues
authorOmar Sandoval <osandov@fb.com>
Fri, 7 Apr 2017 14:53:11 +0000 (08:53 -0600)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 9 Jul 2017 01:17:13 +0000 (18:17 -0700)
commita754dcf6a1971fe52d74bbfb467e4cebb43b4386
tree07f1e134d59dab406896e8507baa8c14d79f195a
parentfba7bb05a7457887f0a68f3475f93ebe63753c1d
blk-mq: remap queues when adding/removing hardware queues

Orabug: 26397427

blk_mq_update_nr_hw_queues() used to remap hardware queues, which is the
behavior that drivers expect. However, commit 4e68a011428a changed
blk_mq_queue_reinit() to not remap queues for the case of CPU
hotplugging, inadvertently making blk_mq_update_nr_hw_queues() not remap
queues as well. This breaks, for example, NBD's multi-connection mode,
leaving the added hardware queues unused. Fix it by making
blk_mq_update_nr_hw_queues() explicitly remap the queues.

Fixes: 4e68a011428a ("blk-mq: don't redistribute hardware queues on a CPU hotplug event")
Reviewed-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
(cherry picked from commit ebe8bddb6e30d7a02775b9972099271fc5910f37)

Conflicts:

block/blk-mq.c

Signed-off-by: Junxiao Bi <junxiao.bi@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
block/blk-mq.c