Skip to content

Commit

Permalink
restore smp_mb() in unlock_new_inode()
Browse files Browse the repository at this point in the history
wait_on_inode() doesn't have ->i_lock

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Mar 10, 2012
1 parent 7f6c7e6 commit 310fa7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/inode.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit 310fa7a

Please sign in to comment.