summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorShakeel Butt <shakeel.butt@linux.dev>2026-08-20 22:05:05 -0700
committerChristian Brauner <brauner@kernel.org>2026-08-31 10:04:58 +0200
commitea1c84cca6ab94c7680a68a2560fcf992f3728ba (patch)
treeea37f703f4f3e748faad32f4d9b79a9a82962b9a /tools/lib/python
parent0ef1e65c9f63c37d4665869263e9736281d9773b (diff)
downloadlinux-next-ea1c84cca6ab94c7680a68a2560fcf992f3728ba.tar.gz
linux-next-ea1c84cca6ab94c7680a68a2560fcf992f3728ba.zip
kernfs: Prepare directory revisions for lockless reads
Negative dentry revalidation only needs to sample the parent directory generation and compare it with the value recorded at lookup time. Annotate those accesses with READ_ONCE() and WRITE_ONCE() so the comparison can safely move outside kernfs_rwsem. Revision updates remain serialized by kernfs_rwsem. Assert that writer contract in kernfs_inc_rev(); the read half of the increment stays plain because the semaphore excludes other writers. Signed-off-by: Shakeel Butt <shakeel.butt@linux.dev> Link: https://patch.msgid.link/20260821050507.2161607-3-shakeel.butt@linux.dev Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions