iser-target: Introduce isert_[alloc|free]_comps
authorSagi Grimberg <sagig@mellanox.com>
Sun, 29 Mar 2015 12:52:11 +0000 (15:52 +0300)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 8 Apr 2015 06:27:52 +0000 (23:27 -0700)
commit172369c5703861ca54ec1dcd2708ad75e1ec171a
tree2352b07750abf69068ecef996e5debc05ab63d71
parent40fc069ad8c910e2c20348bd9adeb79b3a945fef
iser-target: Introduce isert_[alloc|free]_comps

Move the code for completion context handling to dedicated
routines. This simplifies the code and removes code duplication.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/isert/ib_isert.c