summaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorEnzo Matsumiya <ematsumiya@suse.de>2025-09-26 19:09:55 -0300
committerEnzo Matsumiya <ematsumiya@suse.de>2025-09-26 19:09:55 -0300
commit6c1aaf492253fac53e875d73018031616cf79359 (patch)
tree626e5397821fc80acd15e283224e62700d84be38 /scripts/generate_rust_analyzer.py
parentb4071f146781a58b1bef3f13960d260753a03ffb (diff)
downloadlinux-6c1aaf492253fac53e875d73018031616cf79359.tar.gz
linux-6c1aaf492253fac53e875d73018031616cf79359.tar.bz2
linux-6c1aaf492253fac53e875d73018031616cf79359.zip
smb: client: rework cached dirs synchronization
This patch adds usage of RCU and seqlocks for cached dir (list and entries). Traversing the list under RCU allows faster lookups (no locks) and also guarantees that entries being read are not gone (i.e. prevents UAF). seqlocks provides atomicity/consistency when reading entries, allowing callers to re-check cfid in case of write-side invalidation. Combined with refcounting, this new approach provides safety for callers and flexibility for future enhancements. Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions