]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: cleanup transaction on abort
authorJosef Bacik <jbacik@fusionio.com>
Fri, 27 Sep 2013 20:32:39 +0000 (16:32 -0400)
committerChris Mason <chris.mason@fusionio.com>
Tue, 12 Nov 2013 02:53:42 +0000 (21:53 -0500)
commit7b98da8b335d7c5f8b3b83adfb51b564b9e7ebdc
treedebfa36ad00bef15ca1d052e98a315eda665c2ee
parent02fa6783366b9d4bd28259c05a6b909a236f82bf
Btrfs: cleanup transaction on abort

If we abort not during a transaction commit we won't clean up anything until we
unmount.  Unfortunately if we abort in the middle of writing out an ordered
extent we won't clean it up and if somebody is waiting on that ordered extent
they will wait forever.  To fix this just make the transaction kthread call the
cleanup transaction stuff if it notices theres an error, and make
btrfs_end_transaction wake up the transaction kthread if there is an error.
Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/disk-io.c
fs/btrfs/transaction.c