]> git.baikalelectronics.ru Git - kernel.git/commit
xprtrdma: Simplify rpcrdma_rep_create
authorChuck Lever <chuck.lever@oracle.com>
Wed, 19 Jun 2019 14:33:20 +0000 (10:33 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 9 Jul 2019 14:30:25 +0000 (10:30 -0400)
commit9191238e8b224906e60428dac07e59e63da96ad1
treeeff3b258a776e7beaa1be8b05c7b673019444470
parent13227d1f8693735f0c501251f919e398e3f9da16
xprtrdma: Simplify rpcrdma_rep_create

Clean up.

Commit 6ebe1df697bd ("xprtrdma: Move Receive posting to Receive
handler") reduced the number of rpcrdma_rep_create call sites to
one. After that commit, the backchannel code no longer invokes it.

Therefore the free list logic added by commit 12b9cf9ffa5a
("xprtrdma: Fix backchannel allocation of extra rpcrdma_reps") is
no longer necessary, and in fact adds some extra overhead that we
can do without.

Simply post any newly created reps. They will get added back to
the rb_recv_bufs list when they subsequently complete.

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