Re: [PATCH 33/38] act_api: Convert action_idr to XArray

2019-08-21 Thread Matthew Wilcox
On Wed, Aug 21, 2019 at 07:41:19PM +, Vlad Buslov wrote: > > @@ -301,18 +292,18 @@ static int tcf_del_walker(struct tcf_idrinfo > > *idrinfo, struct sk_buff *skb, > > if (nla_put_string(skb, TCA_KIND, ops->kind)) > > goto nla_put_failure; > > > > - mutex_lock(&idrinfo->lock

Re: [PATCH 33/38] act_api: Convert action_idr to XArray

2019-08-21 Thread Vlad Buslov
On Wed 21 Aug 2019 at 01:32, Matthew Wilcox wrote: > From: "Matthew Wilcox (Oracle)" > > Replace the mutex protecting the IDR with the XArray spinlock. > > Signed-off-by: Matthew Wilcox (Oracle) > --- > include/net/act_api.h | 6 +- > net/sched/act_api.c | 127 +---

[PATCH 33/38] act_api: Convert action_idr to XArray

2019-08-20 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" Replace the mutex protecting the IDR with the XArray spinlock. Signed-off-by: Matthew Wilcox (Oracle) --- include/net/act_api.h | 6 +- net/sched/act_api.c | 127 +- 2 files changed, 53 insertions(+), 80 deletions(-)