Skip to content

Commit b157380

Browse files
chuckleveramschuma-ntap
authored andcommitted
xprtrdma: Simplify rpcrdma_ep_post_recv()
Clean up. Since commit fc66448 ("xprtrdma: Split the completion queue"), rpcrdma_ep_post_recv() no longer uses the "ep" argument. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
1 parent 13650c2 commit b157380

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

net/sunrpc/xprtrdma/backchannel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ void rpcrdma_bc_receive_call(struct rpcrdma_xprt *r_xprt,
397397
out_short:
398398
pr_warn("RPC/RDMA short backward direction call\n");
399399

400-
if (rpcrdma_ep_post_recv(&r_xprt->rx_ia, &r_xprt->rx_ep, rep))
400+
if (rpcrdma_ep_post_recv(&r_xprt->rx_ia, rep))
401401
xprt_disconnect_done(xprt);
402402
else
403403
pr_warn("RPC: %s: reposting rep %p\n",

net/sunrpc/xprtrdma/rpc_rdma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1141,6 +1141,6 @@ rpcrdma_reply_handler(struct rpcrdma_rep *rep)
11411141

11421142
repost:
11431143
r_xprt->rx_stats.bad_reply_count++;
1144-
if (rpcrdma_ep_post_recv(&r_xprt->rx_ia, &r_xprt->rx_ep, rep))
1144+
if (rpcrdma_ep_post_recv(&r_xprt->rx_ia, rep))
11451145
rpcrdma_recv_buffer_put(rep);
11461146
}

net/sunrpc/xprtrdma/verbs.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,7 +1265,7 @@ rpcrdma_ep_post(struct rpcrdma_ia *ia,
12651265
int i, rc;
12661266

12671267
if (rep) {
1268-
rc = rpcrdma_ep_post_recv(ia, ep, rep);
1268+
rc = rpcrdma_ep_post_recv(ia, rep);
12691269
if (rc)
12701270
return rc;
12711271
req->rl_reply = NULL;
@@ -1300,12 +1300,8 @@ rpcrdma_ep_post(struct rpcrdma_ia *ia,
13001300
return -ENOTCONN;
13011301
}
13021302

1303-
/*
1304-
* (Re)post a receive buffer.
1305-
*/
13061303
int
13071304
rpcrdma_ep_post_recv(struct rpcrdma_ia *ia,
1308-
struct rpcrdma_ep *ep,
13091305
struct rpcrdma_rep *rep)
13101306
{
13111307
struct ib_recv_wr recv_wr, *recv_wr_fail;
@@ -1344,7 +1340,6 @@ rpcrdma_ep_post_extra_recv(struct rpcrdma_xprt *r_xprt, unsigned int count)
13441340
{
13451341
struct rpcrdma_buffer *buffers = &r_xprt->rx_buf;
13461342
struct rpcrdma_ia *ia = &r_xprt->rx_ia;
1347-
struct rpcrdma_ep *ep = &r_xprt->rx_ep;
13481343
struct rpcrdma_rep *rep;
13491344
int rc;
13501345

@@ -1355,7 +1350,7 @@ rpcrdma_ep_post_extra_recv(struct rpcrdma_xprt *r_xprt, unsigned int count)
13551350
rep = rpcrdma_buffer_get_rep_locked(buffers);
13561351
spin_unlock(&buffers->rb_lock);
13571352

1358-
rc = rpcrdma_ep_post_recv(ia, ep, rep);
1353+
rc = rpcrdma_ep_post_recv(ia, rep);
13591354
if (rc)
13601355
goto out_rc;
13611356
}

net/sunrpc/xprtrdma/xprt_rdma.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,8 +457,7 @@ void rpcrdma_ep_disconnect(struct rpcrdma_ep *, struct rpcrdma_ia *);
457457

458458
int rpcrdma_ep_post(struct rpcrdma_ia *, struct rpcrdma_ep *,
459459
struct rpcrdma_req *);
460-
int rpcrdma_ep_post_recv(struct rpcrdma_ia *, struct rpcrdma_ep *,
461-
struct rpcrdma_rep *);
460+
int rpcrdma_ep_post_recv(struct rpcrdma_ia *, struct rpcrdma_rep *);
462461

463462
/*
464463
* Buffer calls - xprtrdma/verbs.c

0 commit comments

Comments
 (0)