xprtrdma: Use ro_unmap_sync in xprt_rdma_send_request
authorChuck Lever <chuck.lever@oracle.com>
Mon, 9 Oct 2017 16:03:34 +0000 (12:03 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 16 Oct 2017 17:51:27 +0000 (13:51 -0400)
commit4ce6c04c2acef91a10d65a3bcb622654bb01d930
treeb83641b8cf1d77e2f95f31779c0f0f9a89d9bc22
parent8f66b1a529047a972cb9602a919c53a95f3d7a2b
xprtrdma: Use ro_unmap_sync in xprt_rdma_send_request

The "safe" version of ro_unmap is used here to avoid waiting
unnecessarily. However:

 - It is safe to wait. After all, we have to wait anyway when using
   FMR to register memory.

 - This case is rare: it occurs only after a reconnect.

By switching this call site to ro_unmap_sync, the final use of
ro_unmap_safe is removed.

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