]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: sched: remove one pair of atomic operations
authorEric Dumazet <edumazet@google.com>
Tue, 19 Oct 2021 00:34:02 +0000 (17:34 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 19 Oct 2021 22:40:50 +0000 (15:40 -0700)
commit97604c65bcda4b0e953cb86dae5335632e199f94
treec537f20d39115173ba86b34a8bee45037ac66059
parent4c57e2fac41cefa49583b9836677e5b59cbe9f64
net: sched: remove one pair of atomic operations

__QDISC_STATE_RUNNING is only set/cleared from contexts owning qdisc lock.

Thus we can use less expensive bit operations, as we were doing
before commit f9eb8aea2a1e ("net_sched: transform qdisc running bit into a seqcount")

Fixes: 29cbcd858283 ("net: sched: Remove Qdisc::running sequence counter")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Ahmed S. Darwish <a.darwish@linutronix.de>
Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Tested-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/sch_generic.h