diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2009-09-17 19:56:01 +0200 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-09-21 15:40:33 +0200 |
commit | 3542a5c0de3d5b33227214a692bf9b12e249078e (patch) | |
tree | 6119bd49d7bbd149b7b6c14eeb60222ff2072bf0 | |
parent | 92f25053c0189f8d2887f837d3936cdca1cdf730 (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>
-rw-r--r-- | mm/page-writeback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 1eea4fa0d41..2585349469e 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 && |