l2tp: put tunnel socket release on a workqueue
authorTom Parkin <tparkin@katalix.com>
Thu, 31 Jan 2013 23:43:00 +0000 (23:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Feb 2013 19:20:30 +0000 (14:20 -0500)
commitf8ccac0e44934ff9414b31cc3167a5c828afec73
treeec40a75d99912502d4bbb3df76f26d8aea96f236
parent188d1f76d0dd3715ceeadfa31376867c3395eb41
l2tp: put tunnel socket release on a workqueue

To allow l2tp_tunnel_delete to be called from an atomic context, place the
tunnel socket release calls on a workqueue for asynchronous execution.

Tunnel memory is eventually freed in the tunnel socket destructor.

Signed-off-by: Tom Parkin <tparkin@katalix.com>
Signed-off-by: James Chapman <jchapman@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_core.c
net/l2tp/l2tp_core.h