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)
commitd7a21c1bed54adcf96e1713019a6ad87e90fbbc3
tree2e481925fb2e69dcf7ebc191be50e9e190462c1b
parenta3aa8b2b84a59ddd5f624aae9ee0f8b3333793e8
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