From: Lukas Czerner Date: Tue, 2 Nov 2010 18:07:17 +0000 (-0400) Subject: ext4: fix lazyinit hang after removing request X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f4245bd4ebf903541ba758ad06c118626d8c6f18;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git 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: Lukas Czerner Signed-off-by: "Theodore Ts'o" --- diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 40131b777af6..8d1d9423ce9a 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -2740,7 +2740,8 @@ cont_thread: 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; }