Skip to content

Commit 57666bb

Browse files
committed
svcrdma: Remove struct svc_rdma_read_info
The remaining fields of struct svc_rdma_read_info are no longer referenced. Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
1 parent efd02cb commit 57666bb

1 file changed

Lines changed: 0 additions & 29 deletions

File tree

net/sunrpc/xprtrdma/svc_rdma_rw.c

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -287,28 +287,6 @@ static void svc_rdma_write_done(struct ib_cq *cq, struct ib_wc *wc)
287287
svc_rdma_write_info_free(info);
288288
}
289289

290-
/* State for pulling a Read chunk.
291-
*/
292-
struct svc_rdma_read_info {
293-
struct svc_rqst *ri_rqst;
294-
struct svc_rdma_recv_ctxt *ri_readctxt;
295-
};
296-
297-
static struct svc_rdma_read_info *
298-
svc_rdma_read_info_alloc(struct svcxprt_rdma *rdma)
299-
{
300-
struct svc_rdma_read_info *info;
301-
302-
return kmalloc_node(sizeof(*info), GFP_KERNEL,
303-
ibdev_to_node(rdma->sc_cm_id->device));
304-
}
305-
306-
static void svc_rdma_read_info_free(struct svcxprt_rdma *rdma,
307-
struct svc_rdma_read_info *info)
308-
{
309-
kfree(info);
310-
}
311-
312290
/**
313291
* svc_rdma_wc_read_done - Handle completion of an RDMA Read ctx
314292
* @cq: controlling Completion Queue
@@ -1121,14 +1099,8 @@ int svc_rdma_process_read_list(struct svcxprt_rdma *rdma,
11211099
struct svc_rdma_recv_ctxt *head)
11221100
{
11231101
struct svc_rdma_chunk_ctxt *cc = &head->rc_cc;
1124-
struct svc_rdma_read_info *info;
11251102
int ret;
11261103

1127-
info = svc_rdma_read_info_alloc(rdma);
1128-
if (!info)
1129-
return -ENOMEM;
1130-
info->ri_rqst = rqstp;
1131-
info->ri_readctxt = head;
11321104
svc_rdma_cc_init(rdma, cc);
11331105
cc->cc_cqe.done = svc_rdma_wc_read_done;
11341106
head->rc_pageoff = 0;
@@ -1165,6 +1137,5 @@ int svc_rdma_process_read_list(struct svcxprt_rdma *rdma,
11651137

11661138
out_err:
11671139
svc_rdma_cc_release(rdma, cc, DMA_FROM_DEVICE);
1168-
svc_rdma_read_info_free(rdma, info);
11691140
return ret;
11701141
}

0 commit comments

Comments
 (0)