IB/iser: Support the remote invalidation exception
authorJenny Derzhavetz <jennyf@mellanox.com>
Thu, 24 Dec 2015 10:20:48 +0000 (12:20 +0200)
committerDoug Ledford <dledford@redhat.com>
Sun, 27 Dec 2015 00:27:10 +0000 (19:27 -0500)
commit59caaed7a72a0e3750dfb84636dae6b781559310
tree69fce7d166f4552fbee364c1c6fe3879c4110070
parente26d2d21ff8e3e4f9768960a83e4b7be43f0aeed
IB/iser: Support the remote invalidation exception

Declare that we support remote invalidation in case we are:
1. using fastreg method
2. always registering memory

Detect the invalidated rkey from the work completion info so we
won't invalidate it locally. The spec mandates that we must not rely
on the target remote invalidate our rkey so we must check it upon
a receive (scsi response) completion.

Signed-off-by: Jenny Derzhavetz <jennyf@mellanox.com>
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/iser/iscsi_iser.h
drivers/infiniband/ulp/iser/iser_initiator.c
drivers/infiniband/ulp/iser/iser_memory.c
drivers/infiniband/ulp/iser/iser_verbs.c