]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
IB/iser: Restructure allocation/deallocation of connection resources
authorShlomo Pongratz <shlomop@mellanox.com>
Sun, 28 Jul 2013 09:35:37 +0000 (12:35 +0300)
committerRoland Dreier <roland@purestorage.com>
Sat, 10 Aug 2013 00:18:08 +0000 (17:18 -0700)
commit986db0d6c08125bdf50d8ffdc3b0307aa2871e3e
tree630ea8d21de9764dd39afbbcb066824ae922866f
parentf91424cf5b0f22a33dea4ccfb0780ee45517b3c8
IB/iser: Restructure allocation/deallocation of connection resources

This is a preparation step to a patch that accepts the number of max
SCSI commands to be supported a session from user space iSCSI tools.

Move the allocation of the login buffer, FMR pool and its associated
page vector from iser_create_ib_conn_res() (which is called prior when
we actually know how many commands should be supported) to
iser_alloc_rx_descriptors() (which is called during the iscsi
connection bind step where this quantity is known).

Also do small refactoring around the deallocation to make that path
similar to the allocation one.

Signed-off-by: Shlomo Pongratz <shlomop@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/iser/iscsi_iser.h
drivers/infiniband/ulp/iser/iser_initiator.c
drivers/infiniband/ulp/iser/iser_verbs.c