summaryrefslogtreecommitdiffstats
path: root/fs/namei.c
diff options
context:
space:
mode:
authorWill Deacon2018-02-19 15:55:55 +0100
committerAl Viro2018-02-25 18:51:10 +0100
commit8cc07c808c9d595e81cbe5aad419b7769eb2e5c9 (patch)
treeb67b43888c8f559aba6365fd2a9965584d626f41 /fs/namei.c
parentfs: dcache: Avoid livelock between d_alloc_parallel and __d_add (diff)
downloadkernel-qcow2-linux-8cc07c808c9d595e81cbe5aad419b7769eb2e5c9.tar.gz
kernel-qcow2-linux-8cc07c808c9d595e81cbe5aad419b7769eb2e5c9.tar.xz
kernel-qcow2-linux-8cc07c808c9d595e81cbe5aad419b7769eb2e5c9.zip
fs: dcache: Use READ_ONCE when accessing i_dir_seq
i_dir_seq is subject to concurrent modification by a cmpxchg or store-release operation, so ensure that the relaxed access in d_alloc_parallel uses READ_ONCE. Reported-by: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namei.c')
0 files changed, 0 insertions, 0 deletions