aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2021-05-14 13:18:41 +0000
committerJens Axboe <[email protected]>2021-05-20 13:59:35 +0000
commit6c60ff048ca1e0739f39aa25996543c6e662a46c (patch)
tree2cbd9f0a9f9c0e49600c999500d7c388e6c8ec4e /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentMerge tag 'nvme-5.13-2021-05-20' of git://git.infradead.org/nvme into block-5.13 (diff)
downloadkernel-6c60ff048ca1e0739f39aa25996543c6e662a46c.tar.gz
kernel-6c60ff048ca1e0739f39aa25996543c6e662a46c.zip
block: prevent block device lookups at the beginning of del_gendisk
As an artifact of how gendisk lookup used to work in earlier kernels, GENHD_FL_UP is only cleared very late in del_gendisk, and a global lock is used to prevent opens from succeeding while del_gendisk is tearing down the gendisk. Switch to clearing the flag early and under bd_mutex so that callers can use bd_mutex to stabilize the flag, which removes the need for the global mutex. 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