https://github.com/torvalds/linux
Revision 66657b318e0e443ada229fccd40c8be86cfebdbf authored by Josef Bacik on 01 August 2012, 19:36:24 UTC, committed by Chris Mason on 28 August 2012, 20:53:33 UTC
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: Josef Bacik <jbacik@fusionio.com>
1 parent 1fa11e2
History
Tip revision: 66657b318e0e443ada229fccd40c8be86cfebdbf authored by Josef Bacik on 01 August 2012, 19:36:24 UTC
Btrfs: barrier before waitqueue_active
Tip revision: 66657b3
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1014 bytes
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 92.7 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 208.2 KB
Makefile -rw-r--r-- 46.0 KB
README -rw-r--r-- 17.3 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top