ext4: Fix lazyinit hang after removing request
PATCH 1/1 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 <[email protected]>
--- fs/ext4/super.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
fs/ext4/super.c +2 -1
@@ -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 ; }
Signature · 1 line
1.7.2.3
Quoted 5 lines · Lukas Czerner
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_OFFSETwhich is bad. So check for that.Signed-off-by Lukas Czerner <[email protected]>
Queued for pushing to Linus for 2.6.27-rc2, thanks.
- Ted