Skip to content

Commit a471977

Browse files
Ming Leiaxboe
authored andcommitted
rbd: unfreeze queue after marking disk as dead
Unfreeze queue after returning from blk_mark_disk_dead(), this way at least allows us to verify queue freeze correctly with lockdep. Suggested-by: Christoph Hellwig <[email protected]> Cc: Ilya Dryomov <[email protected]> Signed-off-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 5402786 commit a471977

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/block/rbd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7284,6 +7284,7 @@ static ssize_t do_rbd_remove(const char *buf, size_t count)
72847284
*/
72857285
blk_mq_freeze_queue(rbd_dev->disk->queue);
72867286
blk_mark_disk_dead(rbd_dev->disk);
7287+
blk_mq_unfreeze_queue(rbd_dev->disk->queue);
72877288
}
72887289

72897290
del_gendisk(rbd_dev->disk);

0 commit comments

Comments
 (0)