[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20211210203256.09eec931@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date: Fri, 10 Dec 2021 20:32:56 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
Cc: netdev@...r.kernel.org, "David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Thomas Gleixner <tglx@...utronix.de>
Subject: Re: [PATCH net-next] net: dev: Always serialize on Qdisc::busylock
in __dev_xmit_skb() on PREEMPT_RT.
On Fri, 10 Dec 2021 16:41:44 +0100 Sebastian Andrzej Siewior wrote:
> - contended = qdisc_is_running(q);
> + if (!IS_ENABLED(CONFIG_PREEMPT_RT))
> + contended = qdisc_is_running(q);
> + else
> + contended = true;
Why not:
contended = qdisc_is_running(q) || IS_ENABLED(CONFIG_PREEMPT_RT);
Powered by blists - more mailing lists