Btrfs: fix deadlock caused by the race between relocation
authorMiao Xie <miaox@cn.fujitsu.com>
Fri, 11 Nov 2011 01:45:05 +0000 (20:45 -0500)
committerChris Mason <chris.mason@oracle.com>
Fri, 11 Nov 2011 01:45:05 +0000 (20:45 -0500)
commit62f30c5462374b991e7e3f42d49ce2265c1b82f1
tree4d991bd451bcc9e619bb4b775b4acc6a0e3fca8f
parent2f120c05e67ae34c93786b1050c6828904314429
Btrfs: fix deadlock caused by the race between relocation

We can not do flushable reservation for the relocation when we create snapshot,
because it may make the transaction commit task and the flush task wait for
each other and the deadlock happens.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/transaction.c