]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
loop: be paranoid on exit and prevent new additions / removals
authorLuis Chamberlain <mcgrof@kernel.org>
Fri, 19 Jun 2020 20:47:27 +0000 (20:47 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Aug 2020 06:26:15 +0000 (08:26 +0200)
commitb51a31ec3e7c0ed31bb02aa0f1b637312f460361
tree8d9de770013bc96b6c8bc81391b0df5606d90383
parent35dfb4f8423eee481c1b5ce29ef22dfe389fcae2
loop: be paranoid on exit and prevent new additions / removals

[ Upstream commit 200f93377220504c5e56754823e7adfea6037f1a ]

Be pedantic on removal as well and hold the mutex.
This should prevent uses of addition while we exit.

Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/block/loop.c