diff options
| author | 2020-05-16 10:46:20 +0200 | |
|---|---|---|
| committer | 2020-05-17 12:35:34 -0700 | |
| commit | 149f7c71e2c710a8ced836421a631953c9f84aa3 (patch) | |
| tree | c93d9ef2919afeee41972fe3c9afdb6cfac30c09 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | mptcp: avoid blocking in tcp_sendpages (diff) | |
| download | linux-dev-149f7c71e2c710a8ced836421a631953c9f84aa3.tar.xz linux-dev-149f7c71e2c710a8ced836421a631953c9f84aa3.zip | |
mptcp: fill skb extension cache outside of mptcp_sendmsg_frag
The mptcp_sendmsg_frag helper contains a loop that will wait on the
subflow sk.
It seems preferrable to only wait in mptcp_sendmsg() when blocking io is
requested. mptcp_sendmsg already has such a wait loop that is used when
no subflow socket is available for transmission.
This is a preparation patch that makes sure we call
mptcp_sendmsg_frag only if a skb extension has been allocated.
Moreover, such allocation currently uses GFP_ATOMIC while it
could use sleeping allocation instead.
Followup patches will remove the wait loop from mptcp_sendmsg_frag()
and will allow to do a sleeping allocation for the extension.
Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
