diff options
author | Jesse Gross <jesse@nicira.com> | 2015-01-03 03:26:03 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-01-05 04:21:33 +0100 |
commit | 829a3ada9cc7d4c30fa61f8033403fb6c8f8092a (patch) | |
tree | 89e2c3f0b5fe649dda54e9745f2ec413c6217a49 /Documentation/VGA-softcursor.txt | |
parent | geneve: Remove workqueue. (diff) | |
download | linux-829a3ada9cc7d4c30fa61f8033403fb6c8f8092a.tar.xz linux-829a3ada9cc7d4c30fa61f8033403fb6c8f8092a.zip |
geneve: Simplify locking.
The existing Geneve locking scheme was pulled over directly from
VXLAN. However, VXLAN has a number of built in mechanisms which make
the locking more complex and are unlikely to be necessary with Geneve.
This simplifies the locking to use a basic scheme of a mutex
when doing updates plus RCU on receive.
In addition to making the code easier to read, this also avoids the
possibility of a race when creating or destroying sockets since
UDP sockets and the list of Geneve sockets are protected by different
locks. After this change, the entire operation is atomic.
Signed-off-by: Jesse Gross <jesse@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/VGA-softcursor.txt')
0 files changed, 0 insertions, 0 deletions