IB/iser: Move fastreg descriptor pool get/put to helper functions
authorSagi Grimberg <sagig@mellanox.com>
Tue, 14 Apr 2015 15:08:21 +0000 (18:08 +0300)
committerDoug Ledford <dledford@redhat.com>
Wed, 15 Apr 2015 20:07:13 +0000 (16:07 -0400)
commitbd8b944eeeb06f5dac705d2357af3800395174eb
tree9dcdddaa34ac46310a2caf8f1696486e31246924
parentf0e35c27a5962cbd17fc58737c7f5f7b398bccb1
IB/iser: Move fastreg descriptor pool get/put to helper functions

Instead of open-coding connection fastreg pool get/put,
we introduce iser_reg_desc[get|put] helpers.

We aren't setting these static as this will be a per-device
routine later on. Also, cleanup iser_unreg_rdma_mem_fastreg
a bit.

This patch does not change any functionality.

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