commit | fe5c3561e6f0ac7c9546209f01351113c1b77ec8 | [log] [tgz] |
---|---|---|
author | stephen hemminger <stephen@networkplumber.org> | Sat Jul 13 10:18:18 2013 -0700 |
committer | David S. Miller <davem@davemloft.net> | Wed Jul 17 12:51:19 2013 -0700 |
tree | 0482e0c7d8cb06a053f4b16b3ba5bc301d89536f | |
parent | f45708209dc445bac0844f6ce86e315a2ffe8a29 [diff] |
vxlan: add necessary locking on device removal 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>