Btrfs: don't walk around with task->state != TASK_RUNNING
authorChris Mason <chris.mason@oracle.com>
Tue, 25 May 2010 14:12:41 +0000 (10:12 -0400)
committerChris Mason <chris.mason@oracle.com>
Tue, 25 May 2010 14:34:58 +0000 (10:34 -0400)
commited3b3d314cd2f16fac42676839854a68cab2e22b
treea38462cdfbaa0dce3bbd26fe7167fe7368439a47
parent11c65dccf70be9ace5dbd3906778e1a099b1fee1
Btrfs: don't walk around with task->state != TASK_RUNNING

Yan Zheng noticed two places we were doing a lot of work
without task->state set to TASK_RUNNING.  This sets the state
properly after we get ready to sleep but decide not to.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/async-thread.c
fs/btrfs/transaction.c