]> asedeno.scripts.mit.edu Git - linux.git/commit
nvme-rdma: wait for local invalidation before completing a request
authorSagi Grimberg <sagi@grimberg.me>
Thu, 23 Nov 2017 15:35:23 +0000 (17:35 +0200)
committerChristoph Hellwig <hch@lst.de>
Sun, 26 Nov 2017 14:33:32 +0000 (15:33 +0100)
commit2f122e4f5107cf8ab0e592d63ed816a00110b4fe
tree63c55c221f5ad98e5e514502bd8ec4f1a7a01ae4
parent4af7f7ff92a42b6c713293c99e7982bcfcf51a70
nvme-rdma: wait for local invalidation before completing a request

We must not complete a request before the host memory region is
invalidated.  Luckily we have send with invalidate protocol support so
we usually don't need to execute it, but in case the target did not
invalidate a memory region for us, we must wait for the invalidation to
complete before unmapping host memory and completing the I/O.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/rdma.c