blk-mq: move _blk_mq_update_nr_hw_queues synchronize_rcu call
authorGiuliano Procida <gprocida@google.com>
Thu, 18 Jun 2020 18:32:23 +0000 (19:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Jun 2020 08:25:17 +0000 (10:25 +0200)
commitb609c7cecb7173fc8a0faf4cd828de3275091a2c
tree31fa838fcd9b3e81776a09b1e5f824fb54c2a014
parentc537cd50721cc21d9dc8ec5b3d5c720436bb7d98
blk-mq: move _blk_mq_update_nr_hw_queues synchronize_rcu call

This fixes the
4.14 backport commit 574eb136ec7f315c3ef2ca68fa9b3e16c56baa24
which was
upstream commit f5bbbbe4d63577026f908a809f22f5fd5a90ea1f.

The upstream commit added a call to synchronize_rcu to
_blk_mq_update_nr_hw_queues, just after freezing queues.

In the backport this landed just after unfreezeing queues.

This commit moves the call to its intended place.

Fixes: 574eb136ec7f ("blk-mq: sync the update nr_hw_queues with blk_mq_queue_tag_busy_iter")
Signed-off-by: Giuliano Procida <gprocida@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
block/blk-mq.c