[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180525032620.eg6gajv4hxxrm4y2@linux-n805>
Date: Thu, 24 May 2018 20:26:20 -0700
From: Davidlohr Bueso <dave@...olabs.net>
To: akpm@...ux-foundation.org, torvalds@...ux-foundation.org
Cc: tgraf@...g.ch, herbert@...dor.apana.org.au,
manfred@...orfullife.com, guillaume.knispel@...ersonicimagine.com,
linux-api@...r.kernel.org, linux-kernel@...r.kernel.org,
Davidlohr Bueso <dbueso@...e.de>
Subject: Re: [PATCH 2/6] lib/rhashtable: guarantee initial hashtable
allocation
On Thu, 24 May 2018, Davidlohr Bueso wrote:
> size = sizeof(*tbl) + nbuckets * sizeof(tbl->buckets[0]);
>+ if (retry) {
>+ gfp |= __GFP_NOFAIL;
>+ tbl = kzalloc(size, gfp);
>+ } /* fall-through */
>+
> if (gfp != GFP_KERNEL)
> tbl = kzalloc(size, gfp | __GFP_NOWARN | __GFP_NORETRY);
This is wrong I'll fix in a v2, it should be _else_ if (gfp != GFP_KERNEL) ...
Powered by blists - more mailing lists