aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorTalal Ahmad <[email protected]>2021-07-09 11:43:06 -0400
committerDavid S. Miller <[email protected]>2021-07-09 11:25:24 -0700
commit358ed624207012f03318235017ac6fb41f8af592 (patch)
treea1bdc734ab9c5e796bad90245669170ecf8d7b89 /tools/perf/scripts/python/export-to-postgresql.py
parent43b90bfad34bcb81b8a5bc7dc650800f4be1787e (diff)
tcp: call sk_wmem_schedule before sk_mem_charge in zerocopy path
sk_wmem_schedule makes sure that sk_forward_alloc has enough bytes for charging that is going to be done by sk_mem_charge. In the transmit zerocopy path, there is sk_mem_charge but there was no call to sk_wmem_schedule. This change adds that call. Without this call to sk_wmem_schedule, sk_forward_alloc can go negetive which is a bug because sk_forward_alloc is a per-socket space that has been forward charged so this can't be negative. Fixes: f214f915e7db ("tcp: enable MSG_ZEROCOPY") Signed-off-by: Talal Ahmad <[email protected]> Reviewed-by: Willem de Bruijn <[email protected]> Reviewed-by: Wei Wang <[email protected]> Reviewed-by: Soheil Hassas Yeganeh <[email protected]> Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions