Skip to content

Commit a9aa5e3

Browse files
Sebastian Andrzej Siewiordavem330
authored andcommitted
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: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent d0c3e46 commit a9aa5e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/core/dev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3724,7 +3724,7 @@ static inline int __dev_xmit_skb(struct sk_buff *skb, struct Qdisc *q,
37243724
* sent after the qdisc owner is scheduled again. To prevent this
37253725
* scenario the task always serialize on the lock.
37263726
*/
3727-
contended = IS_ENABLED(CONFIG_PREEMPT_RT) || qdisc_is_running(q);
3727+
contended = qdisc_is_running(q) || IS_ENABLED(CONFIG_PREEMPT_RT);
37283728
if (unlikely(contended))
37293729
spin_lock(&q->busylock);
37303730

0 commit comments

Comments
 (0)