]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
xprtrdma: Refactor FRMR invalidation
authorChuck Lever <chuck.lever@oracle.com>
Tue, 29 Nov 2016 15:52:57 +0000 (10:52 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 29 Nov 2016 21:45:44 +0000 (16:45 -0500)
commita100fda1a2e1fa6c52373b9c7985a0bd3459bf4c
treee4c49a3f6a390938405da40e9906271d78930246
parent48016dce46ad504a378849490bfb99c98be5cfaa
xprtrdma: Refactor FRMR invalidation

Clean up: After some recent updates, clarifications can be made to
the FRMR invalidation logic.

- Both the remote and local invalidation case mark the frmr INVALID,
  so make that a common path.

- Manage the WR list more "tastefully" by replacing the conditional
  that discriminates between the list head and ->next pointers.

- Use mw->mw_handle in all cases, since that has the same value as
  f->fr_mr->rkey, and is already in cache.

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