MPTCP Linux Development
 help / color / mirror / Atom feed
From: Mat Martineau <mathew.j.martineau at linux.intel.com>
To: mptcp at lists.01.org
Subject: [MPTCP] Re: [MPTCP][PATCH v2 mptcp-next] Squash to "mptcp: remove id 0 address"
Date: Tue, 16 Mar 2021 15:23:30 -0700	[thread overview]
Message-ID: <912874c9-605-a63e-24b7-55d6fbc85b90@linux.intel.com> (raw)
In-Reply-To: be80ad2d5230a0e414a263c871172a4c5b3eaf50.1615871767.git.geliangtang@gmail.com

[-- Attachment #1: Type: text/plain, Size: 1149 bytes --]

On Tue, 16 Mar 2021, Geliang Tang wrote:

> Hold msk->pm.lock when invoking mptcp_pm_remove_addr.
>
> Signed-off-by: Geliang Tang <geliangtang(a)gmail.com>
> ---
> v2:
> - use mptcp_pm_nl_rm_subflow_received instead of
>   mptcp_pm_remove_subflow.

Thanks Geliang! v2 looks good to squash.

Mat


> ---
> net/mptcp/pm_netlink.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/net/mptcp/pm_netlink.c b/net/mptcp/pm_netlink.c
> index c73b7cfc7ae9..f9606934104d 100644
> --- a/net/mptcp/pm_netlink.c
> +++ b/net/mptcp/pm_netlink.c
> @@ -1185,8 +1185,10 @@ static int mptcp_nl_remove_id_zero_address(struct net *net,
> 			goto next;
>
> 		lock_sock(sk);
> +		spin_lock_bh(&msk->pm.lock);
> 		mptcp_pm_remove_addr(msk, &list);
> -		mptcp_pm_remove_subflow(msk, &list);
> +		mptcp_pm_nl_rm_subflow_received(msk, &list);
> +		spin_unlock_bh(&msk->pm.lock);
> 		release_sock(sk);
>
> next:
> -- 
> 2.30.2
> _______________________________________________
> mptcp mailing list -- mptcp(a)lists.01.org
> To unsubscribe send an email to mptcp-leave(a)lists.01.org
>

--
Mat Martineau
Intel

             reply	other threads:[~2021-03-16 22:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-16 22:23 Mat Martineau [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-03-17 10:35 [MPTCP] Re: [MPTCP][PATCH v2 mptcp-next] Squash to "mptcp: remove id 0 address" Matthieu Baerts

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=912874c9-605-a63e-24b7-55d6fbc85b90@linux.intel.com \
    --to=mptcp@lists.linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox