From: Florian Westphal <fw at strlen.de>
To: mptcp at lists.01.org
Subject: [MPTCP] Re: [PATCH net-next 3/8] mptcp: update mptcp ack sequence from work queue
Date: Tue, 25 Feb 2020 13:49:26 +0100 [thread overview]
Message-ID: <20200225124926.GI19559@breakpoint.cc> (raw)
In-Reply-To: 8049d9054ab08f3c7a68176d7fcae77478f50065.camel@redhat.com
[-- Attachment #1: Type: text/plain, Size: 1077 bytes --]
Paolo Abeni <pabeni(a)redhat.com> wrote:
> > + do {
> > + struct sock *ssk = mptcp_subflow_recv_lookup(msk);
> > +
> > + if (!ssk)
> > + break;
> > +
> > + lock_sock(ssk);
>
> I'm wondering if bh_lock_sock(ssk) would suffice here?
>
> If so we could do the skbs move from mptcp_release_cb() in patch 8.
>
> But it looks like the full lock_sock() is required by the skb_orphan()
> call, which in turn modifies ssk->sk_forward_alloc, so no luck right?
Yep, the destructor of the skbs on the ssk rx queue assumes its called
with the ssk owned.
We could of course do bh_lock+then check 'owned' but I'm not sure its
worth it.
I'd suggest to keep the 'direct move from release_cb' in mind as
something we could try to do later.
When I tested an older version of this patch set on top of mptcp-next
then the number of times the work queue ran with nothing todo (no
data in any subflow, no retransmission pending, nothing to reclaim from
rtx queue etc. was really small -- a low 3-digit number for entire mptcp
selftest run iirc. (with poll).
next reply other threads:[~2020-02-25 12:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-25 12:49 Florian Westphal [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-02-25 12:56 [MPTCP] Re: [PATCH net-next 3/8] mptcp: update mptcp ack sequence from work queue Paolo Abeni
2020-02-25 12:31 Paolo Abeni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200225124926.GI19559@breakpoint.cc \
--to=unknown@example.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.