summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2022-11-16 17:02:30 +0300
committerJeff Layton <jlayton@kernel.org>2022-11-30 13:08:10 +0300
commit401a8b8fd5acd51582b15238d72a8d0edd580e9f (patch)
tree7b8c736ac196067e55416586ad2e5a7b99216b6d /README
parentab1ddef98a715eddb65309ffa83267e4e84a571e (diff)
downloadlinux-401a8b8fd5acd51582b15238d72a8d0edd580e9f.tar.xz
filelock: add a new locks_inode_context accessor function
There are a number of places in the kernel that are accessing the inode->i_flctx field without smp_load_acquire. This is required to ensure that the caller doesn't see a partially-initialized structure. Add a new accessor function for it to make this clear and convert all of the relevant accesses in locks.c to use it. Also, convert locks_free_lock_context to use the helper as well instead of just doing a "bare" assignment. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jeff Layton <jlayton@kernel.org>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions