All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Timo Teräs" <timo.teras@iki.fi>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: David Miller <davem@davemloft.net>, netdev@vger.kernel.org
Subject: Re: [PATCH RFC 1/2] flow: virtualize get and entry deletion methods
Date: Mon, 29 Mar 2010 15:20:13 +0300	[thread overview]
Message-ID: <4BB09AFD.4050304@iki.fi> (raw)
In-Reply-To: <20100329121124.GA24470@gondor.apana.org.au>

Herbert Xu wrote:
> On Mon, Mar 29, 2010 at 03:03:26PM +0300, Timo Teräs wrote:
>> All of the code treats the walk.dead as a hint. It does not need
>> strong synchronization with a lock.
> 
> Well then converting it to an atomic_t is completely pointless.

Yes, I came to same conclusion. The only thing I thought justifying
it, was the xfrm_policy_kill() doing the check of the old value.

But as noted few mails ago, it's not necessary. So I'll just go
ahead and remove all locking from the read side, and move the
xfrm_policy_kill to use plain write.

  reply	other threads:[~2010-03-29 12:20 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-25  9:24 [PATCH RFC 0/2] caching bundles instead of policies Timo Teras
2010-03-25  9:24 ` [PATCH RFC 1/2] flow: virtualize get and entry deletion methods Timo Teras
2010-03-25 19:26   ` David Miller
2010-03-26  6:17     ` Timo Teräs
2010-03-29  8:40     ` Herbert Xu
2010-03-29  9:00       ` Timo Teräs
2010-03-29  9:09         ` Herbert Xu
2010-03-29 10:07           ` Timo Teräs
2010-03-29 10:26             ` Herbert Xu
2010-03-29 10:36               ` Timo Teräs
2010-03-29 11:10                 ` Herbert Xu
2010-03-29 11:23                   ` Timo Teräs
2010-03-29 11:32                     ` Herbert Xu
2010-03-29 11:39                       ` Timo Teräs
2010-03-29 11:57                         ` Herbert Xu
2010-03-29 12:03                           ` Timo Teräs
2010-03-29 12:11                             ` Herbert Xu
2010-03-29 12:20                               ` Timo Teräs [this message]
2010-03-29 12:25                                 ` Herbert Xu
2010-03-29 12:33                                   ` Timo Teräs
2010-03-29 12:45                                     ` Herbert Xu
2010-03-25  9:24 ` [PATCH RFC 2/2] xfrm: cache bundles instead of policies for outgoing flows Timo Teras

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=4BB09AFD.4050304@iki.fi \
    --to=timo.teras@iki.fi \
    --cc=davem@davemloft.net \
    --cc=herbert@gondor.apana.org.au \
    --cc=netdev@vger.kernel.org \
    /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.