Skip to content

Refactor path that sends error responses

Chuck Lever linux-nfs linux-rdma 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 0 repliesNew
  2. v16 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8svcrdma: Fix page leak in svc_rdma_recv_read_chunk()net/sunrpc/xprtrdma/svc_rdma_rw.c+21 -70 replies
2/8svcrdma: Remove save_io_pages() call from send_error_msg()net/sunrpc/xprtrdma/svc_rdma_sendto.c+5 -40 replies
3/8svcrdma: Add @rctxt parameter to svc_rdma_send_error() functionsnet/sunrpc/xprtrdma/svc_rdma_recvfrom.c net/sunrpc/xprtrdma/svc_rdma_sendto.c+16 -160 replies
4/8svcrdma: Add a @status parameter to svc_rdma_send_error_msg()net/sunrpc/xprtrdma/svc_rdma_sendto.c+26 -60 replies
5/8svcrdma: Eliminate return value for svc_rdma_send_error_msg()net/sunrpc/xprtrdma/svc_rdma_sendto.c+14 -110 replies
6/8svcrdma: Make svc_rdma_send_error_msg() a global functioninclude/linux/sunrpc/svc_rdma.h net/sunrpc/xprtrdma/svc_rdma_sendto.c+23 -90 replies
7/8svcrdma: Consolidate send_error helper functionsnet/sunrpc/xprtrdma/svc_rdma_recvfrom.c+5 -470 replies
8/8svcrdma: Clean up trace_svcrdma_send_failed() tracepointinclude/trace/events/rpcrdma.h net/sunrpc/xprtrdma/svc_rdma_sendto.c+3 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/8] Refactor path that sends error responses

There are currently two paths in the server's RPC/RDMA implementation for sending error responses. De-duplicate these two into one set of helpers.

I mistakenly did not send the full set last week. The only change since v1 of this series is two additional patches at the end of the series.

---

Chuck Lever (8):
svcrdma: Fix page leak in svc_rdma_recv_read_chunk()
svcrdma: Remove save_io_pages() call from send_error_msg()
svcrdma: Add @rctxt parameter to svc_rdma_send_error() functions
svcrdma: Add a @status parameter to svc_rdma_send_error_msg()
svcrdma: Eliminate return value for svc_rdma_send_error_msg()
svcrdma: Make svc_rdma_send_error_msg() a global function
svcrdma: Consolidate send_error helper functions
svcrdma: Clean up trace_svcrdma_send_failed() tracepoint

 include/linux/sunrpc/svc_rdma.h         |  4 ++
 include/trace/events/rpcrdma.h          |  7 +-
 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c | 59 +++--------------
 net/sunrpc/xprtrdma/svc_rdma_sendto.c   | 87 +++++++++++++++++--------
 4 files changed, 75 insertions(+), 82 deletions(-)

--
Chuck Lever