writeback: don't use schedule_timeout() without setting runstate
authorJens Axboe <jens.axboe@oracle.com>
Thu, 17 Sep 2009 17:56:01 +0000 (19:56 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 21 Sep 2009 13:40:33 +0000 (15:40 +0200)
Just use schedule_timeout_interruptible(), saves a call to
set_current_state().

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
mm/page-writeback.c

index 1eea4fa..2585349 100644 (file)
@@ -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 &&