mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
writeback: use schedule_timeout_interruptible()
Gets rid of a manual set_current_state(). Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
This commit is contained in:
parent
8010c3b634
commit
49db041430
1 changed files with 1 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue