https://github.com/torvalds/linux
Revision 6d74119f1a3efad9dc7f79a16c201242324b731f authored by Josef Bacik on 12 April 2011, 00:20:11 UTC, committed by Chris Mason on 16 April 2011, 11:10:56 UTC
Everytime we try to allocate disk space we try and see if we can pre-emptively
allocate a chunk, but in the common case we don't allocate anything, so there is
no sense in taking the chunk_mutex at all.  So instead if we are allocating a
chunk, mark it in the space_info so we don't get two people trying to allocate
at the same time.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
Reviewed-by: Liu Bo <liubo2009@cn.fujitsu.com>
1 parent 0d39920
History
Tip revision: 6d74119f1a3efad9dc7f79a16c201242324b731f authored by Josef Bacik on 12 April 2011, 00:20:11 UTC
Btrfs: avoid taking the chunk_mutex in do_chunk_alloc
Tip revision: 6d74119
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.0 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-- 187.2 KB
Makefile -rw-r--r-- 50.9 KB
README -rw-r--r-- 17.1 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top