]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Fix busyloop in transaction_kthread()
authorJan Kara <jack@suse.cz>
Mon, 12 Mar 2012 15:05:50 +0000 (16:05 +0100)
committerDavid Sterba <dsterba@suse.cz>
Thu, 22 Mar 2012 10:53:11 +0000 (11:53 +0100)
commitf746bd2dbfa7edc26793be9982cc306e4a4ccb0f
tree1c1f6af7f0f1243e9585a4b726065d579eebc3e9
parent23f2ab9cb94710c3c89cc68b66a9eab42355d577
btrfs: Fix busyloop in transaction_kthread()

When a filesystem got aborted due do error, transaction_kthread() will
busyloop.  Fix it by going to sleep in that case as well. Maybe we should
just stop transaction_kthread() when filesystem is aborted but that would be
more complex.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/btrfs/disk-io.c