mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
xfrm: state: don't use lock anymore unless acquire operation is needed
push the lock down, after earlier patches we can rely on rcu to make sure state struct won't go away. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
This commit is contained in:
parent
c8406998b8
commit
d737a58055
2 changed files with 7 additions and 5 deletions
|
@ -38,9 +38,9 @@ struct netns_xfrm {
|
|||
* mode. Also, it can be used by ah/esp icmp error handler to find
|
||||
* offending SA.
|
||||
*/
|
||||
struct hlist_head *state_bydst;
|
||||
struct hlist_head *state_bysrc;
|
||||
struct hlist_head *state_byspi;
|
||||
struct hlist_head __rcu *state_bydst;
|
||||
struct hlist_head __rcu *state_bysrc;
|
||||
struct hlist_head __rcu *state_byspi;
|
||||
unsigned int state_hmask;
|
||||
unsigned int state_num;
|
||||
struct work_struct state_hash_work;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue