aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/mes_userqueue.c
diff options
context:
space:
mode:
authorNeilBrown <[email protected]>2025-07-16 00:44:29 +0000
committerChristian Brauner <[email protected]>2025-07-18 09:10:42 +0000
commit8afa0a736713898f04d52abad69c07caa2c2f227 (patch)
tree68ed8d2a478e5ce3428d8aeb4f94b9ce28321f82 /drivers/gpu/drm/amd/amdgpu/mes_userqueue.c
parentovl: change ovl_cleanup_and_whiteout() to take rename lock as needed (diff)
downloadkernel-8afa0a736713898f04d52abad69c07caa2c2f227.tar.gz
kernel-8afa0a736713898f04d52abad69c07caa2c2f227.zip
ovl: narrow locking in ovl_whiteout()
ovl_whiteout() relies on the workdir i_rwsem to provide exclusive access to ofs->whiteout which it manipulates. Rather than depending on this, add a new mutex, "whiteout_lock" to explicitly provide the required locking. Use guard(mutex) for this so that we can return without needing to explicitly unlock. Then take the lock on workdir only when needed - to lookup the temp name and to do the whiteout or link. Signed-off-by: NeilBrown <[email protected]> Link: https://lore.kernel.org/[email protected] Reviewed-by: Amir Goldstein <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/mes_userqueue.c')
0 files changed, 0 insertions, 0 deletions