diff options
author | 2022-06-15 12:10:56 +1000 | |
---|---|---|
committer | 2022-06-27 16:46:14 +0200 | |
commit | 086c00c71fc8d47db6983f419a45f9ee167de03f (patch) | |
tree | ef0bf228f242f95a33a07088a2a811264cfa6c03 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | kernfs/file.c: remove redundant error return counter assignment (diff) | |
download | linux-dev-086c00c71fc8d47db6983f419a45f9ee167de03f.tar.xz linux-dev-086c00c71fc8d47db6983f419a45f9ee167de03f.zip |
kernfs: make ->attr.open RCU protected.
After removal of kernfs_open_node->refcnt in the previous patch,
kernfs_open_node_lock can be removed as well by making ->attr.open
RCU protected. kernfs_put_open_node can delegate freeing to ->attr.open
to RCU and other readers of ->attr.open can do so under rcu_read_(un)lock.
Suggested by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Imran Khan <imran.f.khan@oracle.com>
Link: https://lore.kernel.org/r/20220615021059.862643-2-imran.f.khan@oracle.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions