summaryrefslogtreecommitdiff
path: root/drivers/block/loop.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-03-30 07:29:11 +0200
committerJens Axboe <axboe@kernel.dk>2022-04-18 06:54:09 -0600
commit46dc967445bde5300eee7e567a67796de2217586 (patch)
tree77b6dc812b943fab8e9ffa470402b1bf9ae265ee /drivers/block/loop.c
parent98ded54a33839e7b8f8bed772e01a544f48e33a7 (diff)
loop: don't freeze the queue in lo_release
By the time the final ->release is called there can't be outstanding I/O. For non-final ->release there is no need for driver action at all. Thus remove the useless queue freeze. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Jan Kara <jack@suse.cz> Tested-by: Darrick J. Wong <djwong@kernel.org> Link: https://lore.kernel.org/r/20220330052917.2566582-10-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/loop.c')
-rw-r--r--drivers/block/loop.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c
index 610942e9c891..d6315b0c413e 100644
--- a/drivers/block/loop.c
+++ b/drivers/block/loop.c
@@ -1749,13 +1749,6 @@ static void lo_release(struct gendisk *disk, fmode_t mode)
*/
__loop_clr_fd(lo, true);
return;
- } else if (lo->lo_state == Lo_bound) {
- /*
- * Otherwise keep thread (if running) and config,
- * but flush possible ongoing bios in thread.
- */
- blk_mq_freeze_queue(lo->lo_queue);
- blk_mq_unfreeze_queue(lo->lo_queue);
}
out_unlock: