loop: don't freeze the queue in lo_release
authorChristoph Hellwig <hch@lst.de>
Wed, 30 Mar 2022 05:29:11 +0000 (07:29 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 12:54:09 +0000 (06:54 -0600)
commit46dc967445bde5300eee7e567a67796de2217586
tree77b6dc812b943fab8e9ffa470402b1bf9ae265ee
parent98ded54a33839e7b8f8bed772e01a544f48e33a7
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>
drivers/block/loop.c