mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-28 16:52:18 +00:00
fs: use a consume fence in mnt_idmap()
The routine is used in link_path_walk() for every path component. To my reading the entire point of the fence was to grab a fully populated mnt_idmap, but that's already going to happen with mere consume fence. Eliminates an actual fence on arm64. Signed-off-by: Mateusz Guzik <mjguzik@gmail.com> Link: https://lore.kernel.org/r/20241130051712.1036527-1-mjguzik@gmail.com Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
cc6324f1bc
commit
c0a924f06e
@ -76,7 +76,7 @@ struct vfsmount {
|
||||
static inline struct mnt_idmap *mnt_idmap(const struct vfsmount *mnt)
|
||||
{
|
||||
/* Pairs with smp_store_release() in do_idmap_mount(). */
|
||||
return smp_load_acquire(&mnt->mnt_idmap);
|
||||
return READ_ONCE(mnt->mnt_idmap);
|
||||
}
|
||||
|
||||
extern int mnt_want_write(struct vfsmount *mnt);
|
||||
|
Loading…
Reference in New Issue
Block a user