Josef Bacik 6d74119f1a Btrfs: avoid taking the chunk_mutex in do_chunk_alloc
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>
2011-04-16 07:10:56 -04:00
..
2008-09-25 11:04:06 -04:00
2011-03-28 05:37:35 -04:00
2011-04-11 20:25:46 -04:00
2010-12-22 23:15:47 +08:00
2010-12-22 23:15:47 +08:00
2010-05-21 18:31:18 -04:00