Re: Subject: [PATCH ipsec-next 0/8] xfrm: policy: convert lookups to rcu

2016-08-21 Thread Steffen Klassert
On Fri, Aug 12, 2016 at 10:22:54AM +0200, Steffen Klassert wrote: > On Thu, Aug 11, 2016 at 03:17:51PM +0200, Florian Westphal wrote: > > Since commit d188ba86dd07a72eb ("xfrm: add rcu protection to > > sk->sk_policy[]") > > sk_policy can rely on rcu protection. > > > > This change allows to also

Re: Subject: [PATCH ipsec-next 0/8] xfrm: policy: convert lookups to rcu

2016-08-12 Thread Steffen Klassert
On Thu, Aug 11, 2016 at 03:17:51PM +0200, Florian Westphal wrote: > Since commit d188ba86dd07a72eb ("xfrm: add rcu protection to sk->sk_policy[]") > sk_policy can rely on rcu protection. > > This change allows to also use rcu in xfrm_policy_lookup_bytype and to > avoid grabbing the read-sie policy

Subject: [PATCH ipsec-next 0/8] xfrm: policy: convert lookups to rcu

2016-08-11 Thread Florian Westphal
Since commit d188ba86dd07a72eb ("xfrm: add rcu protection to sk->sk_policy[]") sk_policy can rely on rcu protection. This change allows to also use rcu in xfrm_policy_lookup_bytype and to avoid grabbing the read-sie policy lock during lookups. read-side policy rwlock is converted to pure rcu, the