]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit68c4811ccbf61b18ca8277979565ce73de166a8c
tree77b6dc812b943fab8e9ffa470402b1bf9ae265ee
parentd72e2d9514acb487fda624b8276b4d5864239d58
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