diff options
author | Florian Westphal <fw@strlen.de> | 2016-08-11 15:17:53 +0200 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2016-08-12 08:07:11 +0200 |
commit | e1e551bc56302b80ff930c966f9985095fb1b70d (patch) | |
tree | babb24413c09e1ab5ca3a6d690320b05d499204f /sound | |
parent | a5eefc1df641f3c99fe54b309e7b79c18cec4a1e (diff) |
xfrm: policy: prepare policy_bydst hash for rcu lookups
Since commit 56f047305dd4b6b617
("xfrm: add rcu grace period in xfrm_policy_destroy()") xfrm policy
objects are already free'd via rcu.
In order to make more places lockless (i.e. use rcu_read_lock instead of
grabbing read-side of policy rwlock) we only need to:
- use rcu_assign_pointer to store address of new hash table backend memory
- add rcu barrier so that freeing of old memory is delayed (expansion
and free happens from system workqueue, so synchronize_rcu is fine)
- use rcu_dereference to fetch current address of the hash table.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions