提交 6b343099 编写于 作者: J Jeff Layton 提交者: Trond Myklebust

sunrpc: suppress page allocation warnings in xprt_alloc_slot()

It's easily possible for these allocations to fail since we're using
GFP_NOWAIT here. We don't want to spam the logs with warnings about
that though.
Signed-off-by: NJeff Layton <jlayton@redhat.com>
Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 5f23eff3
...@@ -979,7 +979,7 @@ static void xprt_alloc_slot(struct rpc_task *task) ...@@ -979,7 +979,7 @@ static void xprt_alloc_slot(struct rpc_task *task)
list_del(&req->rq_list); list_del(&req->rq_list);
goto out_init_req; goto out_init_req;
} }
req = xprt_dynamic_alloc_slot(xprt, GFP_NOWAIT); req = xprt_dynamic_alloc_slot(xprt, GFP_NOWAIT|__GFP_NOWARN);
if (!IS_ERR(req)) if (!IS_ERR(req))
goto out_init_req; goto out_init_req;
switch (PTR_ERR(req)) { switch (PTR_ERR(req)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册