summaryrefslogtreecommitdiffstats
path: root/fs/fs-writeback.c
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2009-09-15 21:27:40 +0200
committerJens Axboe <jens.axboe@oracle.com>2009-09-16 15:18:52 +0200
commit49db041430e8a856dbc3af15430bf068f1c74655 (patch)
treef6ea57fc200d6584bcaef88b0ac032da0ee5c459 /fs/fs-writeback.c
parentwriteback: add comments to bdi_work structure (diff)
downloadlinux-49db041430e8a856dbc3af15430bf068f1c74655.tar.xz
linux-49db041430e8a856dbc3af15430bf068f1c74655.zip
writeback: use schedule_timeout_interruptible()
Gets rid of a manual set_current_state(). Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to '')
-rw-r--r--fs/fs-writeback.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c
index 55f0d4e51b59..34757758511a 100644
--- a/fs/fs-writeback.c
+++ b/fs/fs-writeback.c
@@ -884,8 +884,7 @@ int bdi_writeback_task(struct bdi_writeback *wb)
}
wait_jiffies = msecs_to_jiffies(dirty_writeback_interval * 10);
- set_current_state(TASK_INTERRUPTIBLE);
- schedule_timeout(wait_jiffies);
+ schedule_timeout_interruptible(wait_jiffies);
try_to_freeze();
}