aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSumit Rai <sumitrai96@gmail.com>2016-07-20 13:59:42 -0700
committerNicholas Bellinger <nab@linux-iscsi.org>2016-07-23 23:34:54 -0700
commitc1ccbfe0311e2380a6d2dcb0714b36904f5d586f (patch)
treec5fa2656c5ede92e8c2de52a0c133d0f67658ec7 /include
parenttcm_fc: set and unset FCP_SPPF_TARG_FCN (diff)
downloadlinux-dev-c1ccbfe0311e2380a6d2dcb0714b36904f5d586f.tar.xz
linux-dev-c1ccbfe0311e2380a6d2dcb0714b36904f5d586f.zip
target: Fix residual overflow handling in target_complete_cmd_with_length
This patch fixes residual overflow handling to correctly set the residual_count using SPDTL, instead of SCSI Allocation Length. Allocation Length is the maximum value of the SPDTL and not substitute for it, hence it shouldn’t be used to calculate ResidualCount except for cases where SPDTL > Allocation Length and Data is truncated (in that case both Alloc Len and SPDTL are same). (SPC 5r01 Section 4.2.5.6). Thanks to Ajay Nair in assisting with this patch. Signed-off-by: Sumit Rai <sumitrai96@gmail.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions