From: Jon Paul Maloy Date: Wed, 12 Mar 2014 15:31:11 +0000 (-0400) Subject: tipc: eliminate redundant locking X-Git-Tag: v3.15-rc1~113^2~171^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b4f302d85785bb1c99b3db7f9557b256baa3805;p=pandora-kernel.git tipc: eliminate redundant locking The three functions tipc_portimportance(), tipc_portunreliable() and tipc_portunreturnable() and their corresponding tipc_set* functions, are all grabbing port_lock when accessing the targeted port. This is unnecessary in the current code, since these calls only are made from within socket downcalls, already protected by sock_lock. We remove the redundant locking. Also, since the functions now become trivial one-liners, we move them to port.h and make them inline. Signed-off-by: Jon Maloy Reviewed-by: Ying Xue Reviewed-by: Erik Hugne Signed-off-by: David S. Miller --- Reading git-diff-tree failed