summaryrefslogtreecommitdiff
path: root/mm/page-writeback.c
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2009-09-17 19:56:01 +0200
committerJens Axboe <jens.axboe@oracle.com>2009-09-21 15:40:33 +0200
commit3542a5c0de3d5b33227214a692bf9b12e249078e (patch)
tree6119bd49d7bbd149b7b6c14eeb60222ff2072bf0 /mm/page-writeback.c
parent92f25053c0189f8d2887f837d3936cdca1cdf730 (diff)
writeback: don't use schedule_timeout() without setting runstate
Just use schedule_timeout_interruptible(), saves a call to set_current_state(). Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'mm/page-writeback.c')
-rw-r--r--mm/page-writeback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c
index 1eea4fa0d410..2585349469e0 100644
--- a/mm/page-writeback.c
+++ b/mm/page-writeback.c
@@ -561,7 +561,7 @@ static void balance_dirty_pages(struct address_space *mapping)
if (pages_written >= write_chunk)
break; /* We've done our duty */
- schedule_timeout(1);
+ schedule_timeout_interruptible(1);
}
if (bdi_nr_reclaimable + bdi_nr_writeback < bdi_thresh &&