From: Jon Paul Maloy Date: Fri, 22 Aug 2014 22:09:15 +0000 (-0400) Subject: tipc: replace port pointer with socket pointer in registry X-Git-Tag: fixes-against-v3.18-rc2~81^2~242^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b50fd087a9f1454d6a8b613fff376dfb6d6ea93;p=pandora-kernel.git tipc: replace port pointer with socket pointer in registry In order to make tipc_sock the only entity referencable from other parts of the stack, we add a tipc_sock pointer instead of a tipc_port pointer to the registry. As a consequence, we also let the function tipc_port_lock() return a pointer to a tipc_sock instead of a tipc_port. We keep the function's name for now, since the lock still is owned by the port. This is another step in the direction of eliminating port_lock, replacing its usage with lock_sock() and bh_lock_sock(). Signed-off-by: Jon Maloy Reviewed-by: Erik Hugne Reviewed-by: Ying Xue Signed-off-by: David S. Miller --- Reading git-diff-tree failed