Skip to content

Commit

Permalink
writeback: use schedule_timeout_interruptible()
Browse files Browse the repository at this point in the history
Gets rid of a manual set_current_state().

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
  • Loading branch information
Jens Axboe committed Sep 16, 2009
1 parent 8010c3b commit 49db041
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/fs-writeback.c
Original file line number Diff line number Diff line change
Expand Up @@ -884,8 +884,7 @@ int bdi_writeback_task(struct bdi_writeback *wb)
}

wait_jiffies = msecs_to_jiffies(dirty_writeback_interval * 10);
set_current_state(TASK_INTERRUPTIBLE);
schedule_timeout(wait_jiffies);
schedule_timeout_interruptible(wait_jiffies);
try_to_freeze();
}

Expand Down

0 comments on commit 49db041

Please sign in to comment.