From: Herbert Xu Date: Wed, 10 Sep 2008 02:58:29 +0000 (-0700) Subject: ipsec: Use RCU-like construct for saved state within a walk X-Git-Tag: v2.6.28-rc1~717^2~299 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abb81c4f3cb9b8d421f1e5474811ef1d461d341c;p=pandora-kernel.git ipsec: Use RCU-like construct for saved state within a walk Now that we save states within a walk we need synchronisation so that the list the saved state is on doesn't disappear from under us. As it stands this is done by keeping the state on the list which is bad because it gets in the way of the management of the state life-cycle. An alternative is to make our own pseudo-RCU system where we use counters to indicate which state can't be freed immediately as it may be referenced by an ongoing walk when that resumes. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller --- Reading git-diff-tree failed