aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorGulam Mohamed <[email protected]>2021-05-14 13:18:42 +0000
committerJens Axboe <[email protected]>2021-05-20 13:59:35 +0000
commitbc6a385132601c29a6da1dbf8148c0d3c9ad36dc (patch)
tree14b20646868109c495216f1c8c44a66cf2d7cdca /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentblock: prevent block device lookups at the beginning of del_gendisk (diff)
downloadkernel-bc6a385132601c29a6da1dbf8148c0d3c9ad36dc.tar.gz
kernel-bc6a385132601c29a6da1dbf8148c0d3c9ad36dc.zip
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 <[email protected]> [hch: split from a larger patch] Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions