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>
This commit is contained in:
Jens Axboe 2009-09-17 19:56:01 +02:00
parent 92f25053c0
commit 3542a5c0de
1 changed files with 1 additions and 1 deletions

View 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 &&