Thread (11 messages) 11 messages, 4 authors, 2017-04-05

Re: [PATCH v3] blk-mq: remap queues when adding/removing hardware queues

From: Keith Busch <hidden>
Date: 2017-03-31 21:00:32

On Fri, Mar 31, 2017 at 01:48:35PM -0700, Omar Sandoval wrote:
From: Omar Sandoval <redacted>

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")
Signed-off-by: Omar Sandoval <redacted>
This looks good to me. 

Reviewed-by: Keith Busch <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help