• Josef Bacik's avatar
    Btrfs: barrier before waitqueue_active · 66657b31
    Josef Bacik authored
    We need a barrir before calling waitqueue_active otherwise we will miss
    wakeups.  So in places that do atomic_dec(); then atomic_read() use
    atomic_dec_return() which imply a memory barrier (see memory-barriers.txt)
    and then add an explicit memory barrier everywhere else that need them.
    Thanks,
    Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
    66657b31
inode.c 203 KB