Jeff Layton 401a8b8fd5 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>
2022-11-30 05:08:10 -05:00
..
2022-10-22 15:30:15 -07:00
2022-10-07 12:33:18 -07:00
2022-10-27 08:26:32 +02:00
2022-10-21 12:25:39 -07:00
2022-11-11 14:02:44 -08:00
2022-10-07 12:33:18 -07:00