Commit b10d9f9d authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller

[XFRM]: Wake up km_waitq once per gc-run instead of once per state.

Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@redhat.com>
parent 20acde37
......@@ -65,7 +65,6 @@ static void xfrm_state_gc_destroy(struct xfrm_state *x)
xfrm_put_type(x->type);
}
kfree(x);
wake_up(&km_waitq);
}
static void xfrm_state_gc_task(void *data)
......@@ -82,6 +81,7 @@ static void xfrm_state_gc_task(void *data)
x = list_entry(entry, struct xfrm_state, bydst);
xfrm_state_gc_destroy(x);
}
wake_up(&km_waitq);
}
static inline unsigned long make_jiffies(long secs)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment