nvme-rdma: Check remotely invalidated rkey matches our expected rkey
authorSagi Grimberg <sagi@grimberg.me>
Thu, 23 Nov 2017 15:35:24 +0000 (17:35 +0200)
committerChristoph Hellwig <hch@lst.de>
Sun, 26 Nov 2017 14:33:32 +0000 (15:33 +0100)
commit3ef0279bb0031f67537bd8972899a6a23d3064d7
tree9df8af1c2c32d83f84b627b74a3ccf445f4d366a
parent2f122e4f5107cf8ab0e592d63ed816a00110b4fe
nvme-rdma: Check remotely invalidated rkey matches our expected rkey

If we got a remote invalidation on a bogus rkey, this is a protocol error.
Fail the connection in this case.

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