[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080908.172513.162820960.davem@davemloft.net>
Date: Mon, 08 Sep 2008 17:25:13 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: herbert@...dor.apana.org.au
Cc: timo.teras@....fi, netdev@...r.kernel.org
Subject: Re: xfrm_state locking regression...
From: Herbert Xu <herbert@...dor.apana.org.au>
Date: Fri, 5 Sep 2008 21:55:07 +1000
> ipsec: Use RCU-like construct for saved state within a walk
Ok, now that I finally understand how this works I like it.
The only comment I would make is that maybe it's a bit excessive
to trigger the GC worker every time we walk the states.
Instead you could expose the GC task's local list go:
xfrm_state_walk_completed++;
smp_wmb();
if (!list_empty(&xfrm_state_gc_work_list))
schedule_work(&xfrm_state_gc_work);
in xfrm_state_walk_done().
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists