]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
xprtrdma: Remove opcode check in Receive completion handler
authorChuck Lever <chuck.lever@oracle.com>
Thu, 3 Aug 2017 18:30:36 +0000 (14:30 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 8 Aug 2017 14:52:00 +0000 (10:52 -0400)
Clean up: The opcode check is no longer necessary, because since
commit 2fa8f88d8892 ("xprtrdma: Use new CQ API for RPC-over-RDMA
client send CQs"), this completion handler is invoked only for
RECV work requests.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/verbs.c

index f1b1c372f7fbced7fcc68dbd82956f4abdce9afe..74dbba84ad386b5e6d9930760f21a1481f503523 100644 (file)
@@ -173,9 +173,6 @@ rpcrdma_wc_receive(struct ib_cq *cq, struct ib_wc *wc)
                goto out_fail;
 
        /* status == SUCCESS means all fields in wc are trustworthy */
-       if (wc->opcode != IB_WC_RECV)
-               return;
-
        dprintk("RPC:       %s: rep %p opcode 'recv', length %u: success\n",
                __func__, rep, wc->byte_len);