提交 f4245bd4 编写于 作者: L Lukas Czerner 提交者: Theodore Ts'o

ext4: fix lazyinit hang after removing request

When the request has been removed from the list and no other request
has been issued, we will end up with next wakeup scheduled to
MAX_JIFFY_OFFSET which is bad. So check for that.
Signed-off-by: NLukas Czerner <lczerner@redhat.com>
Signed-off-by: N"Theodore Ts'o" <tytso@mit.edu>
上级 c8ddb271
......@@ -2740,7 +2740,8 @@ static int ext4_lazyinit_thread(void *arg)
if (freezing(current))
refrigerator();
if (time_after_eq(jiffies, next_wakeup)) {
if ((time_after_eq(jiffies, next_wakeup)) ||
(MAX_JIFFY_OFFSET == next_wakeup)) {
cond_resched();
continue;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册