提交 49db0414 编写于 作者: J Jens Axboe

writeback: use schedule_timeout_interruptible()

Gets rid of a manual set_current_state().
Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
上级 8010c3b6
......@@ -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();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册