Message ID | 168450889814.157177.678686730886780464.stgit@oracle-102.nfsv4bat.org (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net/handshake: Squelch allocation warning during Kunit test | expand |
On Fri, 2023-05-19 at 11:09 -0400, Chuck Lever wrote: > From: Chuck Lever <chuck.lever@oracle.com> > > The "handshake_req_alloc excessive privsize" kunit test is intended > to check what happens when the maximum privsize is exceeded. The > WARN_ON_ONCE_GFP at mm/page_alloc.c:4744 can be disabled safely for > this allocator call site. Should such flag being added to the relevant entry in handshake_req_alloc_params? Thanks! Paolo
diff --git a/net/handshake/request.c b/net/handshake/request.c index d78d41abb3d9..24097cccd158 100644 --- a/net/handshake/request.c +++ b/net/handshake/request.c @@ -120,7 +120,8 @@ struct handshake_req *handshake_req_alloc(const struct handshake_proto *proto, if (!proto->hp_accept || !proto->hp_done) return NULL; - req = kzalloc(struct_size(req, hr_priv, proto->hp_privsize), flags); + req = kzalloc(struct_size(req, hr_priv, proto->hp_privsize), + flags | __GFP_NOWARN); if (!req) return NULL;