[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1288358420-11643-1-git-send-email-lczerner@redhat.com>
Date: Fri, 29 Oct 2010 15:20:20 +0200
From: Lukas Czerner <lczerner@...hat.com>
To: tytso@....edu
Cc: linux-kernel@...r.kernel.org, linux-ext4@...r.kernel.org,
sandeen@...hat.com, adilger@...ger.ca, lczerner@...hat.com
Subject: [PATCH] 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 <lczerner@...hat.com>
---
fs/ext4/super.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 0348ce0..29c3078 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;
}
--
1.7.2.3
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists