netns xfrm: per-netns km_waitq
Disallow spurious wakeups in __xfrm_lookup(). Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
c78371441c
commit
50a30657fd
@@ -2,6 +2,7 @@
|
||||
#define __NETNS_XFRM_H
|
||||
|
||||
#include <linux/list.h>
|
||||
#include <linux/wait.h>
|
||||
#include <linux/workqueue.h>
|
||||
|
||||
struct netns_xfrm {
|
||||
@@ -22,6 +23,8 @@ struct netns_xfrm {
|
||||
struct work_struct state_hash_work;
|
||||
struct hlist_head state_gc_list;
|
||||
struct work_struct state_gc_work;
|
||||
|
||||
wait_queue_head_t km_waitq;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user