]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: act_police: don't use spinlock in the data path
authorDavide Caratti <dcaratti@redhat.com>
Thu, 13 Sep 2018 17:29:13 +0000 (19:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Sep 2018 22:30:22 +0000 (15:30 -0700)
commit633913c6933aa1268fe482eec1ecc41c5e853aad
tree65206253194882b4ccb9a7b83aff2ebc4b1e883c
parentef340c6b41a8b61673604ec8f0da84f3cc02f3eb
net/sched: act_police: don't use spinlock in the data path

use RCU instead of spinlocks, to protect concurrent read/write on
act_police configuration. This reduces the effects of contention in the
data path, in case multiple readers are present.

Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_police.c