Skip to content

Commit 1db3a48

Browse files
author
Trond Myklebust
committed
NFS: Fix wakeup of __nfs_lookup_revalidate() in unblock_revalidate()
Use store_release_wake_up() to add the appropriate memory barrier before calling wake_up_var(&dentry->d_fsdata). Reported-by: Lukáš Hejtmánek<xhejtman@ics.muni.cz> Suggested-by: Santosh Pradhan <santosh.pradhan@gmail.com> Link: https://lore.kernel.org/all/18945D18-3EDB-4771-B019-0335CE671077@ics.muni.cz/ Fixes: 99bc9f2 ("NFS: add barriers when testing for NFS_FSDATA_BLOCKED") Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
1 parent f5b3108 commit 1db3a48

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

fs/nfs/dir.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1828,9 +1828,7 @@ static void block_revalidate(struct dentry *dentry)
18281828

18291829
static void unblock_revalidate(struct dentry *dentry)
18301830
{
1831-
/* store_release ensures wait_var_event() sees the update */
1832-
smp_store_release(&dentry->d_fsdata, NULL);
1833-
wake_up_var(&dentry->d_fsdata);
1831+
store_release_wake_up(&dentry->d_fsdata, NULL);
18341832
}
18351833

18361834
/*

0 commit comments

Comments
 (0)