aboutsummaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
authorGulam Mohamed2021-05-14 15:18:42 +0200
committerJens Axboe2021-05-20 07:59:35 -0600
commitbc6a385132601c29a6da1dbf8148c0d3c9ad36dc (patch)
tree14b20646868109c495216f1c8c44a66cf2d7cdca /drivers/md
parent6c60ff048ca1e0739f39aa25996543c6e662a46c (diff)
block: fix a race between del_gendisk and BLKRRPART
When BLKRRPART is called concurrently with del_gendisk, the partitions rescan can create a stale partition that will never be be cleaned up. Fix this by checking the the disk is up before rescanning partitions while under bd_mutex. Signed-off-by: Gulam Mohamed <gulam.mohamed@oracle.com> [hch: split from a larger patch] Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Ming Lei <ming.lei@redhat.com> Link: https://lore.kernel.org/r/20210514131842.1600568-3-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md')
0 files changed, 0 insertions, 0 deletions