Commit a9aa5e33 authored by Sebastian Andrzej Siewior's avatar Sebastian Andrzej Siewior Committed by David S. Miller
Browse files

net: dev: Change the order of the arguments for the contended condition.



Change the order of arguments and make qdisc_is_running() appear first.
This is more readable for the general case.

Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d0c3e464
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3724,7 +3724,7 @@ static inline int __dev_xmit_skb(struct sk_buff *skb, struct Qdisc *q,
	 * sent after the qdisc owner is scheduled again. To prevent this
	 * scenario the task always serialize on the lock.
	 */
	contended = IS_ENABLED(CONFIG_PREEMPT_RT) || qdisc_is_running(q);
	contended = qdisc_is_running(q) || IS_ENABLED(CONFIG_PREEMPT_RT);
	if (unlikely(contended))
		spin_lock(&q->busylock);