]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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>
Wed, 16 Nov 2011 02:21:02 +0000 (21:21 -0500)
commit0d4fa26306fe06cb8acda9d21d62fab4ea12e0cb
tree44b5151aa847cd99f208ae7a48981a14b56fe46d
parent5ba9ab0df8fba692f62b074f7dfd88d23ae5cfc7
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>
(cherry picked from commit 62f30c5462374b991e7e3f42d49ce2265c1b82f1)
fs/btrfs/transaction.c