]> git.baikalelectronics.ru Git - kernel.git/commit
dm: don't stop request queue after the dm device is suspended
authorMing Lei <ming.lei@redhat.com>
Thu, 21 Oct 2021 14:59:18 +0000 (22:59 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Nov 2021 14:40:10 +0000 (08:40 -0600)
commit1726a645487637b59a45c0e3a5748203a0f3179c
treeb342bc219e30aeb909d4ed7a619b10c09cd97e24
parent80f6f9ed13a94eb8d5b9648b536a31984870a1f2
dm: don't stop request queue after the dm device is suspended

For fixing queue quiesce race between driver and block layer(elevator
switch, update nr_requests, ...), we need to support concurrent quiesce
and unquiesce, which requires the two call to be balanced.

__bind() is only called from dm_swap_table() in which dm device has been
suspended already, so not necessary to stop queue again. With this way,
request queue quiesce and unquiesce can be balanced.

Reported-by: Yi Zhang <yi.zhang@redhat.com>
Fixes: d777b9955b40 ("blk-mq: support concurrent queue quiesce/unquiesce")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Acked-by: Mike Snitzer <snitzer@redhat.com>
Tested-by: Yi Zhang <yi.zhang@redhat.com>
Link: https://lore.kernel.org/r/20211021145918.2691762-4-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/dm.c