aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorIan Kent <[email protected]>2022-10-18 10:32:42 +0800
committerGreg Kroah-Hartman <[email protected]>2022-10-20 13:54:26 +0200
commitaa1d058d48f292aa138e33ad12b7b4d18b5407cd (patch)
treeb217058e2baa1422788a68bf13a628d41110bde3 /tools/perf/scripts/python
parent5033ac5c580cb22245a0c2b9e53d508e8fdd50d8 (diff)
kernfs: dont take i_lock on inode attr read
The kernfs write lock is held when the kernfs node inode attributes are updated. Therefore, when either kernfs_iop_getattr() or kernfs_iop_permission() are called the kernfs node inode attributes won't change. Consequently concurrent kernfs_refresh_inode() calls always copy the same values from the kernfs node. So there's no need to take the inode i_lock to get consistent values for generic_fillattr() and generic_permission(), the kernfs read lock is sufficient. Cc: Tejun Heo <[email protected]> Signed-off-by: Ian Kent <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions