xprtrdma: Squelch ENOBUFS warnings
authorChuck Lever <chuck.lever@oracle.com>
Tue, 11 Apr 2017 17:23:51 +0000 (13:23 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 25 Apr 2017 20:12:33 +0000 (16:12 -0400)
When ro_map is out of buffers, that's not a permanent error, so
don't report a problem.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/rpc_rdma.c

index e68131bed3ce7eaead04a532103ecedf71dd247d..694e9b13ecf07722848d86345589ad4793474fb5 100644 (file)
@@ -781,9 +781,11 @@ rpcrdma_marshal_req(struct rpc_rqst *rqst)
        return 0;
 
 out_err:
-       pr_err("rpcrdma: rpcrdma_marshal_req failed, status %ld\n",
-              PTR_ERR(iptr));
-       r_xprt->rx_stats.failed_marshal_count++;
+       if (PTR_ERR(iptr) != -ENOBUFS) {
+               pr_err("rpcrdma: rpcrdma_marshal_req failed, status %ld\n",
+                      PTR_ERR(iptr));
+               r_xprt->rx_stats.failed_marshal_count++;
+       }
        return PTR_ERR(iptr);
 }