IB/iser: Maintain connection fmr_pool under a single registration descriptor
authorAdir Lev <adirl@mellanox.com>
Thu, 6 Aug 2015 15:32:59 +0000 (18:32 +0300)
committerDoug Ledford <dledford@redhat.com>
Sun, 30 Aug 2015 22:12:30 +0000 (18:12 -0400)
commit2b3bf958103899a96d230c9f2e0d87606f08a7be
tree9639c689b81d58f16f201d6a8d6ffa22e3570668
parent385ad87d4b637c1ebdb54bc93274fc2c267dfc16
IB/iser: Maintain connection fmr_pool under a single registration descriptor

This will allow us to unify the memory registration code path between
the various methods which vary by the device capabilities. This change
will make it easier and less intrusive to remove fmr_pools from the
code when we'd want to.

The reason we use a single descriptor is to avoid taking a
redundant spinlock when working with FMRs.

We also change the signature of iser_reg_page_vec to make it match
iser_fast_reg_mr (and the future indirect registration method).

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