vxlan: add necessary locking on device removal
authorstephen hemminger <stephen@networkplumber.org>
Sat, 13 Jul 2013 17:18:18 +0000 (10:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Jul 2013 19:51:19 +0000 (12:51 -0700)
The socket management is now done in workqueue (outside of RTNL)
and protected by vn->sock_lock. There were two possible bugs, first
the vxlan device was removed from the VNI hash table per socket without
holding lock. And there was a race when device is created and the workqueue
could run after deletion.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found