blk-mq: blk-mq: check quiesce state before queue_rqs
authorKeith Busch <kbusch@kernel.org>
Mon, 20 Dec 2021 20:59:19 +0000 (12:59 -0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 20 Dec 2021 21:03:59 +0000 (14:03 -0700)
commit518579a9af10a4b7b952a8366566fdcc7cfce3ca
tree8370391dff5fc5f2c809724f43069cf6c094ac13
parent361c81dbc58c8aa230e1f2d556045fa7bc3eb4a3
blk-mq: blk-mq: check quiesce state before queue_rqs

The low level drivers don't expect to see new requests after a
successful quiesce completes. Check the queue quiesce state within the
rcu protected area prior to calling the driver's queue_rqs().

Fixes: 3c67d44de787 ("block: add mq_ops->queue_rqs hook")
Signed-off-by: Keith Busch <kbusch@kernel.org>
Link: https://lore.kernel.org/r/20211220205919.180191-1-kbusch@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c