android_kernel_samsung_univ.../net/tipc
Jon Paul Maloy 6c9808ce09 tipc: remove port_lock
In previous commits we have reduced usage of port_lock to a minimum,
and complemented it with usage of bh_lock_sock() at the remaining
locations. The purpose has been to remove this lock altogether, since
it largely duplicates the role of bh_lock_sock. We are now ready to do
this.

However, we still need to protect the BH callers from inadvertent
release of the socket while they hold a reference to it. We do this by
replacing port_lock by a combination of a rw-lock protecting the
reference table as such, and updating the socket reference counter while
the socket is referenced from BH. This technique is more standard and
comprehensible than the previous approach, and turns out to have a
positive effect on overall performance.

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>
2014-08-23 11:18:34 -07:00
..
addr.c
addr.h
bcast.c tipc: use pseudo message to wake up sockets after link congestion 2014-08-23 11:18:33 -07:00
bcast.h tipc: rename temporarily named functions 2014-07-16 21:38:19 -07:00
bearer.c
bearer.h
config.c tipc: use registry when scanning sockets 2014-08-23 11:18:34 -07:00
config.h
core.c
core.h tipc: use pseudo message to wake up sockets after link congestion 2014-08-23 11:18:33 -07:00
discover.c
discover.h
eth_media.c
ib_media.c
Kconfig
link.c tipc: use pseudo message to wake up sockets after link congestion 2014-08-23 11:18:33 -07:00
link.h tipc: use pseudo message to wake up sockets after link congestion 2014-08-23 11:18:33 -07:00
log.c
Makefile
msg.c tipc: use pseudo message to wake up sockets after link congestion 2014-08-23 11:18:33 -07:00
msg.h tipc: use pseudo message to wake up sockets after link congestion 2014-08-23 11:18:33 -07:00
name_distr.c tipc: rename temporarily named functions 2014-07-16 21:38:19 -07:00
name_distr.h tipc: make name table distributor use new send function 2014-07-16 21:38:18 -07:00
name_table.c
name_table.h
net.c tipc: use registry when scanning sockets 2014-08-23 11:18:34 -07:00
net.h tipc: same receive code path for connection protocol and data messages 2014-06-27 12:50:56 -07:00
netlink.c
node_subscr.c tipc: eliminate case of writing to freed memory 2014-06-27 12:50:54 -07:00
node_subscr.h
node.c tipc: use message to abort connections when losing contact to node 2014-08-23 11:18:33 -07:00
node.h tipc: use message to abort connections when losing contact to node 2014-08-23 11:18:33 -07:00
port.c tipc: use registry when scanning sockets 2014-08-23 11:18:34 -07:00
port.h tipc: remove port_lock 2014-08-23 11:18:34 -07:00
ref.c tipc: remove port_lock 2014-08-23 11:18:34 -07:00
ref.h tipc: remove port_lock 2014-08-23 11:18:34 -07:00
server.c
server.h
socket.c tipc: remove port_lock 2014-08-23 11:18:34 -07:00
socket.h tipc: use registry when scanning sockets 2014-08-23 11:18:34 -07:00
subscr.c
subscr.h
sysctl.c