Thread (33 messages) 33 messages, 4 authors, 2018-05-31

Re: [PATCH 2/6] lib/rhashtable: guarantee initial hashtable allocation

From: Davidlohr Bueso <dave@stgolabs.net>
Date: 2018-05-25 03:43:07
Also in: lkml

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) ...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help