svcrdma: Add an async version of svc_rdma_write_info_free()
authorChuck Lever <chuck.lever@oracle.com>
Tue, 21 Nov 2023 16:40:39 +0000 (11:40 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Sun, 7 Jan 2024 22:54:27 +0000 (17:54 -0500)
commitf09c36c8dffc7dcf796b862bffdda5753bec84ef
tree5c91052e606788b6d95f4496222dec813dd0f9e9
parentae225fe27b931de89b6b1e1bbe6de4de23000850
svcrdma: Add an async version of svc_rdma_write_info_free()

DMA unmapping can take quite some time, so it should not be handled
in a single-threaded completion handler. Defer releasing write_info
structs to the recently-added workqueue.

With this patch, DMA unmapping can be handled in parallel, and it
does not cause head-of-queue blocking of Write completions.

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