From: Jesse Gross Date: Sat, 3 Jan 2015 02:26:03 +0000 (-0800) Subject: geneve: Simplify locking. X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~134^2~293^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=829a3ada9cc7d4c30fa61f8033403fb6c8f8092a;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed