Commit 7954c850 authored by Chuck Lever's avatar Chuck Lever

svcrdma: Remove chunk list pointers

Clean up: These pointers are no longer used.
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent 41bc163f
...@@ -149,12 +149,8 @@ struct svc_rdma_recv_ctxt { ...@@ -149,12 +149,8 @@ struct svc_rdma_recv_ctxt {
struct svc_rdma_pcl rc_call_pcl; struct svc_rdma_pcl rc_call_pcl;
struct svc_rdma_pcl rc_read_pcl; struct svc_rdma_pcl rc_read_pcl;
__be32 *rc_write_list;
struct svc_rdma_chunk *rc_cur_result_payload; struct svc_rdma_chunk *rc_cur_result_payload;
struct svc_rdma_pcl rc_write_pcl; struct svc_rdma_pcl rc_write_pcl;
__be32 *rc_reply_chunk;
struct svc_rdma_pcl rc_reply_pcl; struct svc_rdma_pcl rc_reply_pcl;
struct page *rc_pages[RPCSVC_MAXPAGES]; struct page *rc_pages[RPCSVC_MAXPAGES];
......
...@@ -540,17 +540,13 @@ static bool xdr_check_write_list(struct svc_rdma_recv_ctxt *rctxt) ...@@ -540,17 +540,13 @@ static bool xdr_check_write_list(struct svc_rdma_recv_ctxt *rctxt)
p = xdr_inline_decode(&rctxt->rc_stream, sizeof(*p)); p = xdr_inline_decode(&rctxt->rc_stream, sizeof(*p));
if (!p) if (!p)
return false; return false;
rctxt->rc_write_list = NULL;
if (!xdr_count_write_chunks(rctxt, p)) if (!xdr_count_write_chunks(rctxt, p))
return false; return false;
if (!pcl_alloc_write(rctxt, &rctxt->rc_write_pcl, p)) if (!pcl_alloc_write(rctxt, &rctxt->rc_write_pcl, p))
return false; return false;
if (!pcl_is_empty(&rctxt->rc_write_pcl))
rctxt->rc_write_list = p;
rctxt->rc_cur_result_payload = pcl_first_chunk(&rctxt->rc_write_pcl); rctxt->rc_cur_result_payload = pcl_first_chunk(&rctxt->rc_write_pcl);
return rctxt->rc_write_pcl.cl_count < 2; return true;
} }
/* Sanity check the Reply chunk. /* Sanity check the Reply chunk.
...@@ -573,13 +569,11 @@ static bool xdr_check_reply_chunk(struct svc_rdma_recv_ctxt *rctxt) ...@@ -573,13 +569,11 @@ static bool xdr_check_reply_chunk(struct svc_rdma_recv_ctxt *rctxt)
if (!p) if (!p)
return false; return false;
rctxt->rc_reply_chunk = NULL;
if (!xdr_item_is_present(p)) if (!xdr_item_is_present(p))
return true; return true;
if (!xdr_check_write_chunk(rctxt)) if (!xdr_check_write_chunk(rctxt))
return false; return false;
rctxt->rc_reply_chunk = p;
rctxt->rc_reply_pcl.cl_count = 1; rctxt->rc_reply_pcl.cl_count = 1;
return pcl_alloc_write(rctxt, &rctxt->rc_reply_pcl, p); return pcl_alloc_write(rctxt, &rctxt->rc_reply_pcl, p);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment