mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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]> Signed-off-by: "Theodore Ts'o" <[email protected]>
This commit is contained in:
parent
c8ddb2713c
commit
f4245bd4eb
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue