]> git.ipfire.org Git - thirdparty/linux.git/commit
filelock: use a consume fence in locks_inode_context()
authorMateusz Guzik <mjguzik@gmail.com>
Wed, 3 Dec 2025 09:48:36 +0000 (10:48 +0100)
committerChristian Brauner <brauner@kernel.org>
Mon, 15 Dec 2025 13:33:38 +0000 (14:33 +0100)
commit1fa4e69a54a250fa17d2afd9c5b54a59329033c1
treeaca72244bcb7200d1666fef9878494ad4c343108
parent5854fc6391e9d67c9ebfb4cb618406b5a372db6b
filelock: use a consume fence in locks_inode_context()

Matches the idiom of storing a pointer with a release fence and safely
getting the content with a consume fence after.

Eliminates an actual fence on some archs.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Link: https://patch.msgid.link/20251203094837.290654-1-mjguzik@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
include/linux/filelock.h