diff options
| author | NeilBrown <[email protected]> | 2025-07-16 00:44:29 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2025-07-18 09:10:42 +0000 |
| commit | 8afa0a736713898f04d52abad69c07caa2c2f227 (patch) | |
| tree | 68ed8d2a478e5ce3428d8aeb4f94b9ce28321f82 /drivers/gpu/drm/amd/amdgpu/mes_userqueue.c | |
| parent | ovl: change ovl_cleanup_and_whiteout() to take rename lock as needed (diff) | |
| download | kernel-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
