Liu Bo
15d1ff8111
Btrfs: fix deadlock during allocating chunks
...
This deadlock comes from xfstests 251.
We'll hold the chunk_mutex throughout the whole of a chunk allocation.
But if we find that we've used up system chunk space, we need to allocate a
new system chunk, but this will lead to a recursion of chunk allocation and end
up with a deadlock on chunk_mutex.
So instead we need to allocate the system chunk first if we find we're in ENOSPC.
Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com >
Signed-off-by: Chris Mason <chris.mason@oracle.com >
2012-03-29 09:57:44 -04:00
..
2011-10-20 18:10:47 +02:00
2012-03-22 01:45:34 +01:00
2012-03-22 01:45:34 +01:00
2012-03-28 20:33:40 -04:00
2012-03-27 14:51:21 +02:00
2012-01-16 15:29:43 -05:00
2012-02-24 10:39:05 -05:00
2011-12-21 19:14:09 +01:00
2012-03-22 11:52:54 +01:00
2012-03-22 01:45:34 +01:00
2012-03-28 20:31:37 -04:00
2012-03-28 20:32:46 -04:00
2012-03-22 11:52:54 +01:00
2011-07-26 16:49:47 -07:00
2012-03-22 01:45:34 +01:00
2012-01-04 16:12:48 +01:00
2012-03-22 11:52:54 +01:00
2012-03-28 20:33:58 -04:00
2012-03-22 01:45:40 +01:00
2012-03-22 11:52:54 +01:00
2012-03-28 20:31:37 -04:00
2012-03-28 20:31:37 -04:00
2011-08-01 14:30:50 -04:00
2012-02-15 16:40:25 +01:00
2012-03-29 09:57:44 -04:00
2012-03-28 20:34:10 -04:00
2012-03-22 11:52:54 +01:00
2012-03-22 11:52:54 +01:00
2012-03-28 20:31:37 -04:00
2012-03-29 09:57:44 -04:00
2012-03-28 20:31:37 -04:00
2012-03-28 20:33:40 -04:00
2012-01-16 22:04:49 +02:00
2011-12-21 19:14:16 +01:00
2012-03-22 01:45:34 +01:00
2012-03-22 01:45:34 +01:00
2012-01-16 15:27:58 -05:00
2012-03-22 01:45:34 +01:00
2012-03-22 01:45:34 +01:00
2012-03-22 11:52:54 +01:00
2011-10-20 18:10:50 +02:00
2012-03-27 14:21:26 -04:00
2012-03-22 11:52:54 +01:00
2012-03-22 11:52:54 +01:00
2012-03-28 20:33:40 -04:00
2012-03-26 17:04:23 -04:00
2012-03-28 20:33:40 -04:00
2012-03-29 09:57:44 -04:00
2012-03-22 01:45:40 +01:00
2012-03-22 11:52:54 +01:00
2012-03-22 01:45:34 +01:00
2011-12-22 16:22:24 +01:00
2011-12-22 16:22:24 +01:00
2012-03-28 20:33:58 -04:00
2012-03-22 01:45:34 +01:00
2012-01-16 15:28:54 -05:00