Skip to content
Commit 66657b31 authored by Josef Bacik's avatar Josef Bacik Committed by Chris Mason
Browse files

Btrfs: barrier before waitqueue_active



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>
parent 1fa11e26
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment