]> git.baikalelectronics.ru Git - kernel.git/commit
xprtrdma: Reset MRs in frwr_op_unmap_sync()
authorChuck Lever <chuck.lever@oracle.com>
Mon, 2 May 2016 18:42:12 +0000 (14:42 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 17 May 2016 19:48:02 +0000 (15:48 -0400)
commit5c2f759e3adaa30753a29cc734d5946be3b92bb0
tree2e481925fb2e69dcf7ebc191be50e9e190462c1b
parenta7bbaa5fa34158e388673280d30050dd9d5aa7ce
xprtrdma: Reset MRs in frwr_op_unmap_sync()

frwr_op_unmap_sync() is now invoked in a workqueue context, the same
as __frwr_queue_recovery(). There's no need to defer MR reset if
posting LOCAL_INV MRs fails.

This means that even when ib_post_send() fails (which should occur
very rarely) the invalidation and DMA unmapping steps are still done
in the correct order.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Tested-by: Steve Wise <swise@opengridcomputing.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/frwr_ops.c