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:
committed by
David S. Miller
parent
d0c3e46484
commit
a9aa5e3320
@@ -3724,7 +3724,7 @@ no_lock_out:
|
|||||||
* sent after the qdisc owner is scheduled again. To prevent this
|
* sent after the qdisc owner is scheduled again. To prevent this
|
||||||
* scenario the task always serialize on the lock.
|
* 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))
|
if (unlikely(contended))
|
||||||
spin_lock(&q->busylock);
|
spin_lock(&q->busylock);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user