diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2019-04-24 15:39:00 +0200 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2019-04-25 20:59:25 +0200 |
commit | b2ca473b920dfbaad7c4f9eb5043258ef71f321f (patch) | |
tree | 08970be9e59f54689f8546c9fa82f784eec01bd0 /net/sunrpc/xprtrdma | |
parent | SUNRPC: Avoid digging into the ATOMIC pool (diff) | |
download | linux-b2ca473b920dfbaad7c4f9eb5043258ef71f321f.tar.xz linux-b2ca473b920dfbaad7c4f9eb5043258ef71f321f.zip |
xprtrdma: Fix an frwr_map recovery nit
After a DMA map failure in frwr_map, mark the MR so that recycling
won't attempt to DMA unmap it.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Fixes: e2f34e26710b ("xprtrdma: Yet another double DMA-unmap")
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc/xprtrdma')
-rw-r--r-- | net/sunrpc/xprtrdma/frwr_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/xprtrdma/frwr_ops.c b/net/sunrpc/xprtrdma/frwr_ops.c index 52cb6c1b0c2b..a2a2e01cb5dd 100644 --- a/net/sunrpc/xprtrdma/frwr_ops.c +++ b/net/sunrpc/xprtrdma/frwr_ops.c @@ -466,7 +466,7 @@ struct rpcrdma_mr_seg *frwr_map(struct rpcrdma_xprt *r_xprt, return seg; out_dmamap_err: - frwr->fr_state = FRWR_IS_INVALID; + mr->mr_dir = DMA_NONE; trace_xprtrdma_frwr_sgerr(mr, i); rpcrdma_mr_put(mr); return ERR_PTR(-EIO); |