From: Shlomo Pongratz Date: Fri, 7 Feb 2014 06:41:37 +0000 (-0600) Subject: [SCSI] libiscsi: Restructure iscsi_tcp r2t response logic X-Git-Tag: v3.15-rc1~136^2~62 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d0fddd0a72d3023bb0fa97e546f687aa6222be3;p=pandora-kernel.git [SCSI] libiscsi: Restructure iscsi_tcp r2t response logic Restructure the iscsi_tcp_r2t_rsp routine in order to avoid allocating r2t from r2tpool.queue and returning it back in case the parameters rhdr->data_length and or rhdr->data_offset prohibit the requing. Since the values of these parameters are known prior to the allocation, we can pre-check and thus avoid futile allocations. [jejb: checkpatch fixes] Signed-off-by: Shlomo Pongratz Signed-off-by: Or Gerlitz Signed-off-by: Mike Christie Signed-off-by: James Bottomley --- Reading git-diff-tree failed