mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 22:21:42 +00:00
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>
This commit is contained in:
parent
d0c3e46484
commit
a9aa5e3320
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user