summaryrefslogtreecommitdiffstats
path: root/net/tipc/port.h
diff options
context:
space:
mode:
authorJon Paul Maloy <jon.maloy@ericsson.com>2014-08-23 00:09:10 +0200
committerDavid S. Miller <davem@davemloft.net>2014-08-23 20:18:34 +0200
commit80e44c22255468337b891da2348cab68cb62766f (patch)
treeda9d58ff818406e20757fa1f431070262d18c93c /net/tipc/port.h
parenttipc: clean up socket timer function (diff)
downloadlinux-80e44c22255468337b891da2348cab68cb62766f.tar.xz
linux-80e44c22255468337b891da2348cab68cb62766f.zip
tipc: eliminate function tipc_port_shutdown()
tipc_port_shutdown() is a remnant from the now obsolete native interface. As such it grabs port_lock in order to protect itself from concurrent BH processing. However, after the recent changes to the port/socket upcalls, sockets are now basically single-threaded, and all execution, except the read-only tipc_sk_timer(), is executing within the protection of lock_sock(). So the use of port_lock is not needed here. In this commit we eliminate the whole function, and merge it into its only caller, tipc_shutdown(). Signed-off-by: Jon Maloy <jon.maloy@ericsson.com> Reviewed-by: Erik Hugne <erik.hugne@ericsson.com> Reviewed-by: Ying Xue <ying.xue@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/port.h')
-rw-r--r--net/tipc/port.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/tipc/port.h b/net/tipc/port.h
index 6cdc7de8c9b8..f5762f940e33 100644
--- a/net/tipc/port.h
+++ b/net/tipc/port.h
@@ -106,8 +106,6 @@ int tipc_port_connect(u32 portref, struct tipc_portid const *port);
int tipc_port_disconnect(u32 portref);
-int tipc_port_shutdown(u32 ref);
-
/*
* The following routines require that the port be locked on entry
*/