From: Jens Axboe Date: Thu, 17 Sep 2009 17:56:01 +0000 (+0200) Subject: writeback: don't use schedule_timeout() without setting runstate X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3542a5c0de3d5b33227214a692bf9b12e249078e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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 &&