From 3542a5c0de3d5b33227214a692bf9b12e249078e Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 17 Sep 2009 19:56:01 +0200 Subject: [PATCH] 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 --- mm/page-writeback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 && -- 2.20.1