commit | b65e3d7be06fd8ff5236439254f338fe1a8d4bbd | [log] [tgz] |
---|---|---|
author | Florian Westphal <fw@strlen.de> | Tue Aug 09 12:16:07 2016 +0200 |
committer | Steffen Klassert <steffen.klassert@secunet.com> | Wed Aug 10 11:23:24 2016 +0200 |
tree | e9831de71641f57f8987811bdfd8b74b9cdbb438 | |
parent | df7274eb70b7c8488170ebe8757dd94647a8e1e5 [diff] |
xfrm: state: add sequence count to detect hash resizes Once xfrm_state_find is lockless we have to cope with a concurrent resize opertion. We use a sequence counter to block in case a resize is in progress and to detect if we might have missed a state that got moved to a new hash table. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>