aboutsummaryrefslogtreecommitdiffstats
path: root/fs/inode.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-03-10 17:07:28 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2012-03-10 17:07:28 -0500
commit310fa7a36722017088af123043ebd231cd6bc559 (patch)
tree0943711750f1fabe4b696f7532bcc610fe37dd02 /fs/inode.c
parent7f6c7e62fcc123e6bd9206da99a2163fe3facc31 (diff)
restore smp_mb() in unlock_new_inode()
wait_on_inode() doesn't have ->i_lock Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/inode.c')
-rw-r--r--fs/inode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/inode.c b/fs/inode.c
index 8affbc9c211b..83ab215baab1 100644
--- a/fs/inode.c
+++ b/fs/inode.c
@@ -965,6 +965,7 @@ void unlock_new_inode(struct inode *inode)
965 spin_lock(&inode->i_lock); 965 spin_lock(&inode->i_lock);
966 WARN_ON(!(inode->i_state & I_NEW)); 966 WARN_ON(!(inode->i_state & I_NEW));
967 inode->i_state &= ~I_NEW; 967 inode->i_state &= ~I_NEW;
968 smp_mb();
968 wake_up_bit(&inode->i_state, __I_NEW); 969 wake_up_bit(&inode->i_state, __I_NEW);
969 spin_unlock(&inode->i_lock); 970 spin_unlock(&inode->i_lock);
970} 971}