diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2019-04-24 09:39:48 -0400 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2019-04-25 15:19:56 -0400 |
commit | 17e4c443c0b433354016df60a7bd3f1c6aac759c (patch) | |
tree | d001746c4daa8a374b17372dbb4539bd8e735bd2 /net/sunrpc | |
parent | 4ba02e8d0ea5461d0e55e76c91481f1153f63365 (diff) | |
download | linux-stable-17e4c443c0b433354016df60a7bd3f1c6aac759c.tar.gz linux-stable-17e4c443c0b433354016df60a7bd3f1c6aac759c.tar.bz2 linux-stable-17e4c443c0b433354016df60a7bd3f1c6aac759c.zip |
xprtrdma: Trace marshaling failures
Record an event when rpcrdma_marshal_req returns a non-zero return
value to help track down why an xprt close might have occurred.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r-- | net/sunrpc/xprtrdma/rpc_rdma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sunrpc/xprtrdma/rpc_rdma.c b/net/sunrpc/xprtrdma/rpc_rdma.c index 231a44b9c152..45cba06655ea 100644 --- a/net/sunrpc/xprtrdma/rpc_rdma.c +++ b/net/sunrpc/xprtrdma/rpc_rdma.c @@ -875,6 +875,7 @@ rpcrdma_marshal_req(struct rpcrdma_xprt *r_xprt, struct rpc_rqst *rqst) return 0; out_err: + trace_xprtrdma_marshal_failed(rqst, ret); switch (ret) { case -EAGAIN: xprt_wait_for_buffer_space(rqst->rq_xprt); |