• Florian Westphal's avatar
    mptcp: fill skb extension cache outside of mptcp_sendmsg_frag · 149f7c71
    Florian Westphal authored
    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: default avatarPaolo Abeni <pabeni@redhat.com>
    Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    149f7c71
protocol.c 49.9 KB