sunrpc: suppress page allocation warnings in xprt_alloc_slot()
authorJeff Layton <jlayton@redhat.com>
Wed, 16 May 2012 17:30:35 +0000 (13:30 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 16 May 2012 17:37:14 +0000 (10:37 -0700)
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: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/xprt.c

index 0cbcd1ab49ab5544952d3385b64b2e29b1843872..b239e75c483f524f0fc071c88df2bc025d311e29 100644 (file)
@@ -979,7 +979,7 @@ static void xprt_alloc_slot(struct rpc_task *task)
                list_del(&req->rq_list);
                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))
                goto out_init_req;
        switch (PTR_ERR(req)) {