[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20140321171830.ef47fdea1a3a2f2921c8fe86@skynet.be>
Date: Fri, 21 Mar 2014 17:18:30 +0100
From: Fabian Frederick <fabf@...net.be>
To: linux-kernel <linux-kernel@...r.kernel.org>
Cc: reiserfs-devel@...r.kernel.org, akpm <akpm@...ux-foundation.org>
Subject: [RFC 1/1] fs/reiserfs/journal.c: Remove obsolete __GFP_NOFAIL
Loop around congestion_wait on allocation failure/alloc_journal_list
like already fixed in other FS.
(Does it need returning -ENOMEM after some retries ?)
Signed-off-by: Fabian Frederick <fabf@...net.be>
---
fs/reiserfs/journal.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/fs/reiserfs/journal.c b/fs/reiserfs/journal.c
index fd77703..e8c56a9 100644
--- a/fs/reiserfs/journal.c
+++ b/fs/reiserfs/journal.c
@@ -2487,8 +2487,13 @@ static int journal_read(struct super_block *sb)
static struct reiserfs_journal_list *alloc_journal_list(struct super_block *s)
{
struct reiserfs_journal_list *jl;
- jl = kzalloc(sizeof(struct reiserfs_journal_list),
- GFP_NOFS | __GFP_NOFAIL);
+
+ do {
+ jl = kzalloc(sizeof(struct reiserfs_journal_list), GFP_NOFS);
+ if (unlikely(!jl))
+ congestion_wait(BLK_RW_ASYNC, HZ/50);
+ } while (!jl)
+
INIT_LIST_HEAD(&jl->j_list);
INIT_LIST_HEAD(&jl->j_working_list);
INIT_LIST_HEAD(&jl->j_tail_bh_list);
--
1.8.4.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists