[Top] [All Lists]

Re: patch2: del/get byid

To: jamal <hadi@xxxxxxxxxx>
Subject: Re: patch2: del/get byid
From: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 30 Apr 2005 10:47:15 +1000
Cc: Alexey Kuznetsov <kuznet@xxxxxxxxxxxxx>, netdev@xxxxxxxxxxx, "David S. Miller" <davem@xxxxxxxxxxxxx>
In-reply-to: <1114821357.8929.27.camel@xxxxxxxxxxxxxxxxxxxxx>
References: <20050428030325.GB23823@xxxxxxxxxxxxxxxxxxx> <1114658657.7663.110.camel@xxxxxxxxxxxxxxxxxxxxx> <1114698033.7663.197.camel@xxxxxxxxxxxxxxxxxxxxx> <20050428231154.GA14215@xxxxxxxxxxxxxxxxxxx> <1114779104.7800.22.camel@xxxxxxxxxxxxxxxxxxxxx> <1114816846.8929.6.camel@xxxxxxxxxxxxxxxxxxxxx> <20050429234952.GB22699@xxxxxxxxxxxxxxxxxxx> <1114819281.8929.9.camel@xxxxxxxxxxxxxxxxxxxxx> <20050430001248.GA22927@xxxxxxxxxxxxxxxxxxx> <1114821357.8929.27.camel@xxxxxxxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.6+20040907i
On Fri, Apr 29, 2005 at 08:35:57PM -0400, jamal wrote:
> > 1) You find delpol using xfrm_policy_byid/xfrm_policy_bysel.
> Which increments the refcnt

Refcnt prevents the policy from being freed.  It doesn't prevent it
from being deleted from the list.  Only the list lock can do that.

Visit Openswan at
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page:
PGP Key:

<Prev in Thread] Current Thread [Next in Thread>