summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2021-12-13 19:29:31 +0300
committerDavid S. Miller <davem@davemloft.net>2021-12-14 15:34:08 +0300
commita9aa5e3320ae9d322091993e4ed1b7e7651f00a1 (patch)
treee041bfcad50fcb189970bf42d32c4524f2ad17dc
parentd0c3e46484fb9bafcfb0648da919f91eea7e14cd (diff)
downloadlinux-a9aa5e3320ae9d322091993e4ed1b7e7651f00a1.tar.xz
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 <bigeasy@linutronix.de> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/core/dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 53bef2aae378..a855e41bbe39 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -3724,7 +3724,7 @@ no_lock_out:
* 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);