aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util
diff options
context:
space:
mode:
authorRoland Dreier <[email protected]>2012-02-14 15:30:31 -0800
committerNicholas Bellinger <[email protected]>2012-02-25 14:37:50 -0800
commit6cf3fa6918baab0c447f1206f1cef9166ad04864 (patch)
tree9613aaaa51fd6082f31f2d45f707b54e01128dc9 /tools/perf/scripts/python/Perf-Trace-Util
parent015487b89f27d91d95a056cdc3c85e6c729bff12 (diff)
tcm_loop: Set residual field for SCSI commands
If the target core signals an over- or under-run, tcm_loop should call scsi_set_resid() to tell the SCSI midlayer about the residual data length. The difference can be seen by doing something like strace -eioctl sg_raw -r 1024 /dev/sda 8 0 0 0 1 0 > /dev/null and looking at the "resid=" part of the SG_IO ioctl -- after this patch, the field is correctly reported as 512. Signed-off-by: Roland Dreier <[email protected]> Cc: [email protected] Signed-off-by: Nicholas Bellinger <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util')
0 files changed, 0 insertions, 0 deletions