From: David Miller <davem@davemloft.net>
To: eric.dumazet@gmail.com
Cc: joshc@ni.com, paulmck@linux.vnet.ibm.com, tglx@linutronix.de,
bigeasy@linutronix.de, linux-rt-users@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH -rt] Revert "net: use synchronize_rcu_expedited()"
Date: Fri, 30 Oct 2015 18:16:08 +0900 (KST) [thread overview]
Message-ID: <20151030.181608.1502431720880609527.davem@davemloft.net> (raw)
In-Reply-To: <1445955481.7476.21.camel@edumazet-glaptop2.roam.corp.google.com>
From: Eric Dumazet <eric.dumazet@gmail.com>
Date: Tue, 27 Oct 2015 07:18:01 -0700
> On Tue, 2015-10-27 at 07:31 -0500, Josh Cartwright wrote:
>
>> Okay, yes, I like the first suggestion better as well, I've included a
>> patch below that does just that. I hope you don't mind me turning it
>> into a Suggested-by :).
>>
>> Thanks for taking a look!
>> Josh
>
>
>> @@ -6969,7 +6969,7 @@ EXPORT_SYMBOL(free_netdev);
>> void synchronize_net(void)
>> {
>> might_sleep();
>> - if (rtnl_is_locked())
>> + if (rtnl_is_locked() && !IS_ENABLED(CONFIG_PREEMPT_RT_FULL))
>> synchronize_rcu_expedited();
>> else
>> synchronize_rcu();
>
> No objection from me. Thanks.
>
> Acked-by: Eric Dumazet <edumazet@google.com>
I agree with the sentiment to do the simple thing here first before
adding potentially useless knobs.
Signed-off-by: David S. Miller <davem@davemloft.net>
prev parent reply other threads:[~2015-10-30 9:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-26 19:14 Josh Cartwright
2015-10-27 0:44 ` Paul E. McKenney
2015-10-27 12:31 ` Josh Cartwright
2015-10-27 14:18 ` Eric Dumazet
2015-10-27 15:02 ` Arnaldo Carvalho de Melo
2015-10-27 15:27 ` Eric Dumazet
2015-10-27 23:15 ` Paul E. McKenney
2015-10-28 8:34 ` Josh Cartwright
2015-10-28 12:27 ` Paul E. McKenney
2015-10-30 9:16 ` David Miller [this message]
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=20151030.181608.1502431720880609527.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=bigeasy@linutronix.de \
--cc=eric.dumazet@gmail.com \
--cc=joshc@ni.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rt-users@vger.kernel.org \
--cc=paulmck@linux.vnet.ibm.com \
--cc=tglx@linutronix.de \
/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
all inboxes | Powered by JetHome®