aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorNeilBrown <[email protected]>2025-07-16 00:44:14 +0000
committerChristian Brauner <[email protected]>2025-07-18 09:10:40 +0000
commitd2c995581c7c5d0ff623b2700e76bf22499c66df (patch)
tree821d0c884346ac1075138574d501653a16580c58 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentovl: change ovl_create_index() to take dir locks (diff)
downloadkernel-d2c995581c7c5d0ff623b2700e76bf22499c66df.tar.gz
kernel-d2c995581c7c5d0ff623b2700e76bf22499c66df.zip
ovl: Call ovl_create_temp() without lock held.
ovl currently locks a directory or two and then performs multiple actions in one or both directories. This is incompatible with proposed changes which will lock just the dentry of objects being acted on. This patch moves calls to ovl_create_temp() out of the locked regions and has it take and release the relevant lock itself. The lock that was taken before this function was called is now taken after. This means that any code between where the lock was taken and ovl_create_temp() is now unlocked. This necessitates the use of ovl_cleanup_unlocked() and the creation of ovl_lookup_upper_unlocked(). These will be used more widely in future patches. Now that the file is created before the lock is taken for rename, we need to ensure the parent wasn't changed before the lock was gained. ovl_lock_rename_workdir() is changed to optionally receive the dentries that will be involved in the rename. If either is present but has the wrong parent, an error is returned. Reviewed-by: Amir Goldstein <[email protected]> Signed-off-by: NeilBrown <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions