| To: | Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [2/4] [IPSEC] Kill spurious hard expire messages |
| From: | jamal <hadi@xxxxxxxxxx> |
| Date: | 09 Apr 2005 08:30:44 -0400 |
| Cc: | "David S. Miller" <davem@xxxxxxxxxxxxx>, Masahide NAKAMURA <nakam@xxxxxxxxxxxxxx>, Patrick McHardy <kaber@xxxxxxxxx>, netdev <netdev@xxxxxxxxxxx> |
| In-reply-to: | <20050409111244.GB7171@xxxxxxxxxxxxxxxxxxx> |
| Organization: | jamalopolous |
| References: | <1112702604.1089.119.camel@xxxxxxxxxxxxxxxx> <20050409105452.GA7171@xxxxxxxxxxxxxxxxxxx> <20050409111244.GB7171@xxxxxxxxxxxxxxxxxxx> |
| Reply-to: | hadi@xxxxxxxxxx |
| Sender: | netdev-bounce@xxxxxxxxxxx |
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 |
| Previous by Date: | [3/4] [IPSEC] Turn km_event.data into a union, Herbert Xu |
|---|---|
| Next by Date: | Re: [PATCH] s390: claw network device driver, Jörn Engel |
| Previous by Thread: | Re: [5/*] [IPSEC] Use XFRM_MSG_* instead of XFRM_SAP_*, Masahide NAKAMURA |
| Next by Thread: | Re: [2/4] [IPSEC] Kill spurious hard expire messages, Herbert Xu |
| Indexes: | [Date] [Thread] [Top] [All Lists] |