aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorAmir Goldstein <[email protected]>2024-04-05 14:56:35 +0000
committerAl Viro <[email protected]>2024-04-14 10:55:46 +0000
commit16b52bbee4823b01ab7fe3919373c981a38f3797 (patch)
treece7a54dd66475297874f9a14c370bb8a6aabb9c6 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentLinux 6.9-rc3 (diff)
downloadkernel-16b52bbee4823b01ab7fe3919373c981a38f3797.tar.gz
kernel-16b52bbee4823b01ab7fe3919373c981a38f3797.zip
kernfs: annotate different lockdep class for of->mutex of writable files
The writable file /sys/power/resume may call vfs lookup helpers for arbitrary paths and readonly files can be read by overlayfs from vfs helpers when sysfs is a lower layer of overalyfs. To avoid a lockdep warning of circular dependency between overlayfs inode lock and kernfs of->mutex, use a different lockdep class for writable and readonly kernfs files. Reported-by: [email protected] Fixes: 0fedefd4c4e3 ("kernfs: sysfs: support custom llseek method for sysfs entries") Suggested-by: Al Viro <[email protected]> Signed-off-by: Amir Goldstein <[email protected]> Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions