writeback: bdi_writeback_task() must set task state before calling schedule()
authorJens Axboe <jens.axboe@oracle.com>
Tue, 18 May 2010 12:31:45 +0000 (14:31 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 21 May 2010 18:00:25 +0000 (20:00 +0200)
commitf9eadbbd424c083b8005c7b738f644611b9ef489
treeedc73e0fa56de566af7672f6f80579ec317d373f
parent7c8a3554c683f512dbcee26faedb42e4c05f12fa
writeback: bdi_writeback_task() must set task state before calling schedule()

Calling schedule without setting the task state to non-running will
return immediately, so ensure that we set it properly and check our
sleep conditions after doing so.

This is a fixup for commit 69b62d01.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fs/fs-writeback.c