Skip to content

Commit

Permalink
writeback: don't use schedule_timeout() without setting runstate
Browse files Browse the repository at this point in the history
Just use schedule_timeout_interruptible(), saves a call to
set_current_state().

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
  • Loading branch information
Jens Axboe committed Sep 21, 2009
1 parent 92f2505 commit 3542a5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/page-writeback.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit 3542a5c

Please sign in to comment.