2021-02-08 15:44:07

by Chuck Lever III

[permalink] [raw]
Subject: alloc_pages_bulk()

Hi-

[ please Cc: me, I'm not subscribed to linux-mm ]

We've been discussing how NFSD can more efficiently refill its
receive buffers (currently alloc_page() in a loop; see
net/sunrpc/svc_xprt.c::svc_alloc_arg()).

Neil Brown pointed me to this old thread:

https://lore.kernel.org/lkml/[email protected]/

We see that many of the prerequisites are in v5.11-rc, but
alloc_page_bulk() is not. I tried forward-porting 4/4 in that
series, but enough internal APIs have changed since 2017 that
the patch does not come close to applying and compiling.

I'm wondering:

a) is there a newer version of that work?

b) if not, does there exist a preferred API in 5.11 for bulk
page allocation?

Many thanks for any guidance!

--
Chuck Lever