]> 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)
commita5f06248faa575a38197d9f0417eac21e84e1bf8
tree1c1f6af7f0f1243e9585a4b726065d579eebc3e9
parent99175604eacbd34254f1b05afda25ac6040eb37f
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