Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xprtrdma: Update comments that reference ib_drain_qp

Commit e1ede312f17e ("xprtrdma: Fix helper that drains the
transport") replaced the ib_drain_qp() call, so update documenting
comments to reflect current operation.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>

authored by

Chuck Lever and committed by
Anna Schumaker
b8fe677f 5f2311f5

+6 -4
+6 -4
net/sunrpc/xprtrdma/verbs.c
··· 83 83 static void rpcrdma_regbuf_free(struct rpcrdma_regbuf *rb); 84 84 static void rpcrdma_post_recvs(struct rpcrdma_xprt *r_xprt, bool temp); 85 85 86 - /* Wait for outstanding transport work to finish. 86 + /* Wait for outstanding transport work to finish. ib_drain_qp 87 + * handles the drains in the wrong order for us, so open code 88 + * them here. 87 89 */ 88 90 static void rpcrdma_xprt_drain(struct rpcrdma_xprt *r_xprt) 89 91 { ··· 794 792 */ 795 793 796 794 /* rpcrdma_sendctxs_destroy() assumes caller has already quiesced 797 - * queue activity, and ib_drain_qp has flushed all remaining Send 798 - * requests. 795 + * queue activity, and rpcrdma_xprt_drain has flushed all remaining 796 + * Send requests. 799 797 */ 800 798 static void rpcrdma_sendctxs_destroy(struct rpcrdma_buffer *buf) 801 799 { ··· 1196 1194 * rpcrdma_buffer_destroy - Release all hw resources 1197 1195 * @buf: root control block for resources 1198 1196 * 1199 - * ORDERING: relies on a prior ib_drain_qp : 1197 + * ORDERING: relies on a prior rpcrdma_xprt_drain : 1200 1198 * - No more Send or Receive completions can occur 1201 1199 * - All MRs, reps, and reqs are returned to their free lists 1202 1200 */