From: Shlomo Pongratz Date: Sun, 28 Jul 2013 09:35:37 +0000 (+0300) Subject: IB/iser: Restructure allocation/deallocation of connection resources X-Git-Tag: v3.12-rc1~139^2^4~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=986db0d6c08125bdf50d8ffdc3b0307aa2871e3e;p=pandora-kernel.git 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 Signed-off-by: Or Gerlitz Signed-off-by: Roland Dreier --- Reading git-diff-tree failed