https://github.com/torvalds/linux
Revision ad3e34bba4b64ab8e1f5ea1a17768e1a0d9648ea authored by Josef Bacik on 08 June 2011, 18:45:50 UTC, committed by Arne Jansen on 10 June 2011, 10:14:12 UTC
Arne's scrub stuff exposed a problem with mapping the extent buffer in
reada_for_search.  He searches the commit root with multiple threads and with
skip_locking set, so we can race and overwrite node->map_token since node isn't
locked.  So fix this so that we only map the extent buffer if we don't already
have a map_token and skip_locking isn't set.  Without this patch scrub would
panic almost immediately, with the patch it doesn't panic anymore.  Thanks,

Reported-by: Arne Jansen <sensille@gmx.net>
Signed-off-by: Josef Bacik <josef@redhat.com>
1 parent aa0467d
History
Tip revision: ad3e34bba4b64ab8e1f5ea1a17768e1a0d9648ea authored by Josef Bacik on 08 June 2011, 18:45:50 UTC
Btrfs: don't map extent buffer if path->skip_locking is set
Tip revision: ad3e34b
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-- 941 bytes
.mailmap -rw-r--r-- 4.1 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.7 KB
Kbuild -rw-r--r-- 2.4 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 188.3 KB
Makefile -rw-r--r-- 51.1 KB
README -rw-r--r-- 17.1 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top