]> git.baikalelectronics.ru Git - kernel.git/commit
xprtrdma: Save I/O direction in struct rpcrdma_frwr
authorChuck Lever <chuck.lever@oracle.com>
Mon, 2 May 2016 18:42:04 +0000 (14:42 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 17 May 2016 19:48:01 +0000 (15:48 -0400)
commita7bbaa5fa34158e388673280d30050dd9d5aa7ce
tree874e240de0eb1a848f99bfb91d7ffaefdf28c05f
parentcd12085b2a35e07a0ecda8019c05c9c77b2ae66a
xprtrdma: Save I/O direction in struct rpcrdma_frwr

Move the the I/O direction field from rpcrdma_mr_seg into the
rpcrdma_frmr.

This makes it possible to DMA-unmap the frwr long after an RPC has
exited and its rpcrdma_mr_seg array has been released and re-used.
This might occur if an RPC times out while waiting for a new
connection to be established.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Tested-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/frwr_ops.c
net/sunrpc/xprtrdma/xprt_rdma.h