aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/af_unix/unix_connect.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2022-11-16 09:02:30 -0500
committerJeff Layton <jlayton@kernel.org>2022-11-30 05:08:10 -0500
commit401a8b8fd5acd51582b15238d72a8d0edd580e9f (patch)
tree7b8c736ac196067e55416586ad2e5a7b99216b6d /tools/testing/selftests/net/af_unix/unix_connect.c
parentab1ddef98a715eddb65309ffa83267e4e84a571e (diff)
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 'tools/testing/selftests/net/af_unix/unix_connect.c')
0 files changed, 0 insertions, 0 deletions