]> git.samba.org - sfrench/cifs-2.6.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)
commit914b20070b413ca10f832c45a58b2894990f065f
tree1c1f6af7f0f1243e9585a4b726065d579eebc3e9
parent79787eaab46121d4713ed03c8fc63b9ec3eaec76
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