From: jamal <hadi@cyberus.ca>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>,
netdev@oss.sgi.com, "David S. Miller" <davem@davemloft.net>
Subject: Re: patch2: del/get byid
Date: Fri, 29 Apr 2005 21:08:12 -0400 [thread overview]
Message-ID: <1114823293.8929.44.camel@localhost.localdomain> (raw)
In-Reply-To: <20050430004715.GA23429@gondor.apana.org.au>
On Sat, 2005-30-04 at 10:47 +1000, Herbert Xu wrote:
> 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.
>
Yes, of course. Look at the code carefuly, the delpol is already
_unlinked_ when i call xfrm_policy_kill();->
If it wasnt so none of those tests would have worked; infact in my first
30 seconds of testing i discovered that when i listed after
an update;->
cheers,
jamal
prev parent reply other threads:[~2005-04-30 1:08 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-28 2:11 patch2: del/get byid jamal
2005-04-28 2:14 ` Herbert Xu
2005-04-28 2:23 ` jamal
2005-04-28 2:25 ` Herbert Xu
2005-04-28 2:39 ` jamal
2005-04-28 2:42 ` Herbert Xu
2005-04-28 2:55 ` jamal
2005-04-28 3:03 ` Herbert Xu
2005-04-28 3:24 ` jamal
2005-04-28 14:20 ` jamal
2005-04-28 23:11 ` Herbert Xu
2005-04-29 12:51 ` jamal
2005-04-29 23:20 ` jamal
2005-04-29 23:49 ` Herbert Xu
2005-04-30 0:01 ` jamal
2005-04-30 0:12 ` Herbert Xu
2005-04-30 0:35 ` jamal
2005-04-30 0:47 ` Herbert Xu
2005-04-30 1:08 ` jamal [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1114823293.8929.44.camel@localhost.localdomain \
--to=hadi@cyberus.ca \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=kuznet@ms2.inr.ac.ru \
--cc=netdev@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.