aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorColy Li <[email protected]>2020-10-02 16:27:33 +0800
committerDavid S. Miller <[email protected]>2020-10-02 15:27:08 -0700
commit6aa25c737705466020e74ad44679d3758b8961f6 (patch)
tree53850a1b0dbaea770207e5375021f9213a082ecb /tools/perf/scripts/python
parentfb25ebe1b212c37781b23a7f7cd21c0bb2f6eb83 (diff)
scsi: libiscsi: use sendpage_ok() in iscsi_tcp_segment_map()
In iscsci driver, iscsi_tcp_segment_map() uses the following code to check whether the page should or not be handled by sendpage: if (!recv && page_count(sg_page(sg)) >= 1 && !PageSlab(sg_page(sg))) The "page_count(sg_page(sg)) >= 1 && !PageSlab(sg_page(sg)" part is to make sure the page can be sent to network layer's zero copy path. This part is exactly what sendpage_ok() does. This patch uses use sendpage_ok() in iscsi_tcp_segment_map() to replace the original open coded checks. Signed-off-by: Coly Li <[email protected]> Reviewed-by: Lee Duncan <[email protected]> Acked-by: Martin K. Petersen <[email protected]> Cc: Vasily Averin <[email protected]> Cc: Cong Wang <[email protected]> Cc: Mike Christie <[email protected]> Cc: Chris Leech <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Hannes Reinecke <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions