Netdev List
 help / color / mirror / Atom feed
From: jamal <hadi@cyberus.ca>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: "David S. Miller" <davem@davemloft.net>,
	Masahide NAKAMURA <nakam@linux-ipv6.org>,
	Patrick McHardy <kaber@trash.net>, netdev <netdev@oss.sgi.com>
Subject: Re: [2/4] [IPSEC] Kill spurious hard expire messages
Date: 09 Apr 2005 08:30:44 -0400	[thread overview]
Message-ID: <1113049844.1090.23.camel@jzny.localdomain> (raw)
In-Reply-To: <20050409111244.GB7171@gondor.apana.org.au>


Herbert,
This is nice since it seems to go on top of the patch i posted.
I didnt get an ACK from Dave - so i assumed that patch is not on his 
tree yet. Which tree are you using?

Small comment below:

On Sat, 2005-04-09 at 07:12, Herbert Xu wrote:

> ===== net/xfrm/xfrm_policy.c 1.75 vs edited =====
> --- 1.75/net/xfrm/xfrm_policy.c 2005-04-01 16:24:20 +10:00
> +++ edited/net/xfrm/xfrm_policy.c       2005-04-09 18:02:53 +10:00
> @@ -216,8 +216,8 @@
> 
> expired:
>        read_unlock(&xp->lock);
> -       km_policy_expired(xp, dir, 1);
> -       xfrm_policy_delete(xp, dir);
> +       if (!xfrm_policy_delete(xp, dir))
> +               km_policy_expired(xp, dir, 1);
>        xfrm_pol_put(xp);>
> }
>

If the policy was already dead you will still return a 0 from
xfrm_policy_delete(). Fixable by policy_kill returning an int.

cheers,
jamal

  parent reply	other threads:[~2005-04-09 12:30 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-05 12:03 PATCH: IPSEC xfrm events jamal
2005-04-05 12:07 ` Herbert Xu
2005-04-05 12:19   ` jamal
2005-04-05 12:24     ` Arnaldo Carvalho de Melo
2005-04-09 10:54 ` [1/4] [IPSEC] Improve xfrm to pfkey SA state conversion Herbert Xu
2005-04-09 11:12   ` [2/4] [IPSEC] Kill spurious hard expire messages Herbert Xu
2005-04-09 11:15     ` [3/4] [IPSEC] Turn km_event.data into a union Herbert Xu
2005-04-10  7:48       ` [4/4] [IPSEC] Set byid for km_event in xfrm_get_policy Herbert Xu
2005-04-10  9:02         ` [5/*] [IPSEC] Use XFRM_MSG_* instead of XFRM_SAP_* Herbert Xu
2005-04-10  9:38           ` [6/*] [IPSEC] Add xfrm_userpolicy_delete for xfrm_user notification Herbert Xu
2005-04-10 14:15           ` [5/*] [IPSEC] Use XFRM_MSG_* instead of XFRM_SAP_* jamal
2005-04-10 21:28             ` Herbert Xu
2005-04-11  5:45             ` Masahide NAKAMURA
2005-04-11 11:26               ` jamal
2005-04-12  8:17                 ` Masahide NAKAMURA
2005-04-12 13:37                   ` jamal
2005-04-13  5:07                     ` Masahide NAKAMURA
2005-04-09 12:30     ` jamal [this message]
2005-04-09 19:29       ` [2/4] [IPSEC] Kill spurious hard expire messages Herbert Xu
2005-04-09 20:03         ` Herbert Xu
2005-04-10 14:10           ` jamal
2005-04-10 21:27             ` Herbert Xu
2005-04-11 11:20               ` jamal
2005-04-11 11:30                 ` Herbert Xu
2005-04-11 11:57                   ` jamal
2005-04-11 12:08                     ` Herbert Xu
2005-05-07  7:14   ` [0/7] [IPSEC] IPsec event notification Herbert Xu
2005-05-07  7:18     ` [1/7] [IPSEC] Add complete xfrm " Herbert Xu
2005-05-07  7:18       ` Herbert Xu
2005-05-07  7:19       ` [2/7] [IPSEC] Fix xfrm to pfkey SA state conversion Herbert Xu
2005-05-07  7:20         ` [3/7] [IPSEC] Kill spurious hard expire messages Herbert Xu
2005-05-07  7:21           ` [4/7] [IPSEC] Turn km_event.data into a union Herbert Xu
     [not found]             ` <20050507072216.GF5753@gondor.apana.org.au>
     [not found]               ` <20050507072251.GG5753@gondor.apana.org.au>
     [not found]                 ` <20050507072349.GH5753@gondor.apana.org.au>
2005-05-07 12:04                   ` [7/7] [IPSEC] Add XFRMA_SA/XFRMA_POLICY for delete notification jamal
2005-05-07 12:25                     ` Herbert Xu
2005-05-07 12:46                       ` jamal
2005-05-07 19:35                         ` Herbert Xu
2005-05-08 13:56                           ` jamal
2005-05-08 21:40                             ` Herbert Xu
2005-05-09  0:06                               ` jamal
2005-05-07 14:51       ` [1/7] [IPSEC] Add complete xfrm event notification Patrick McHardy
2005-05-07 19:42         ` Herbert Xu

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=1113049844.1090.23.camel@jzny.localdomain \
    --to=hadi@cyberus.ca \
    --cc=davem@davemloft.net \
    --cc=herbert@gondor.apana.org.au \
    --cc=kaber@trash.net \
    --cc=nakam@linux-ipv6.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox