From: Al Viro Date: Sat, 10 Mar 2012 22:07:28 +0000 (-0500) Subject: restore smp_mb() in unlock_new_inode() X-Git-Tag: v3.3~23^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=310fa7a36722017088af123043ebd231cd6bc559;p=profile%2Fcommon%2Fkernel-common.git restore smp_mb() in unlock_new_inode() wait_on_inode() doesn't have ->i_lock Signed-off-by: Al Viro --- diff --git a/fs/inode.c b/fs/inode.c index 8affbc9..83ab215 100644 --- a/fs/inode.c +++ b/fs/inode.c @@ -965,6 +965,7 @@ void unlock_new_inode(struct inode *inode) spin_lock(&inode->i_lock); WARN_ON(!(inode->i_state & I_NEW)); inode->i_state &= ~I_NEW; + smp_mb(); wake_up_bit(&inode->i_state, __I_NEW); spin_unlock(&inode->i_lock); }