summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bnx2i/bnx2i_iscsi.c
diff options
context:
space:
mode:
authorShlomo Pongratz <shlomop@mellanox.com>2014-02-07 00:41:37 -0600
committerJames Bottomley <JBottomley@Parallels.com>2014-03-15 10:19:18 -0700
commit5d0fddd0a72d3023bb0fa97e546f687aa6222be3 (patch)
treea08201b0fcf76e1efcf1be3741b5972be146c341 /drivers/scsi/bnx2i/bnx2i_iscsi.c
parentac0245ff80942e33458cf32926dc1177239f4e19 (diff)
downloadlinux-stable-5d0fddd0a72d3023bb0fa97e546f687aa6222be3.tar.gz
linux-stable-5d0fddd0a72d3023bb0fa97e546f687aa6222be3.tar.bz2
linux-stable-5d0fddd0a72d3023bb0fa97e546f687aa6222be3.zip
[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 <shlomop@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/bnx2i/bnx2i_iscsi.c')
0 files changed, 0 insertions, 0 deletions