linux-stable/net/tipc
Ying Xue f2f2a96a20 tipc: feed tipc sock pointer to tipc_sk_timeout routine
In order to make tipc socket table aware of namespace, a networking
namespace instance must be passed to tipc_sk_lookup(), allowing it
to look up tipc socket instance with a given port ID from a concrete
socket table. However, as now tipc_sk_timeout() only has one port ID
parameter and is not namespace aware, it's unable to obtain a correct
socket instance through tipc_sk_lookup() just with a port ID,
especially after namespace is completely supported.

If port ID is replaced with socket instance as tipc_sk_timeout()'s
parameter, it's unnecessary to look up socket table. But as the timer
handler - tipc_sk_timeout() is run asynchronously, socket reference
must be held before its timer is launched, and must be carefully
checked to identify whether the socket reference needs to be put or
not when its timer is terminated.

Signed-off-by: Ying Xue <ying.xue@windriver.com>
Tested-by: Tero Aho <Tero.Aho@coriant.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-01-12 16:24:32 -05:00
..
addr.c
addr.h tipc: cleanup core.c and core.h files 2015-01-12 16:24:31 -05:00
bcast.c tipc: fix bug in broadcast retransmit code 2015-01-12 16:24:31 -05:00
bcast.h tipc: use generic SKB list APIs to manage TIPC outgoing packet chains 2014-11-26 12:30:17 -05:00
bearer.c tipc: fix sparse warnings in new nl api 2014-11-24 16:10:23 -05:00
bearer.h tipc: use generic SKB list APIs to manage link receive queue 2014-11-26 12:30:17 -05:00
config.c tipc: convert tipc reference table to use generic rhashtable 2015-01-08 19:47:14 -08:00
config.h tipc: cleanup core.c and core.h files 2015-01-12 16:24:31 -05:00
core.c tipc: cleanup core.c and core.h files 2015-01-12 16:24:31 -05:00
core.h tipc: cleanup core.c and core.h files 2015-01-12 16:24:31 -05:00
discover.c tipc: remove unnecessary wrapper functions of kernel timer APIs 2015-01-12 16:24:31 -05:00
discover.h tipc: fix race in disc create/delete 2014-04-22 21:17:53 -04:00
eth_media.c tipc: improve and extend media address conversion functions 2014-05-14 15:19:48 -04:00
ib_media.c tipc: improve and extend media address conversion functions 2014-05-14 15:19:48 -04:00
Kconfig tipc: convert tipc reference table to use generic rhashtable 2015-01-08 19:47:14 -08:00
link.c tipc: remove unnecessary wrapper functions of kernel timer APIs 2015-01-12 16:24:31 -05:00
link.h tipc: cleanup core.c and core.h files 2015-01-12 16:24:31 -05:00
log.c
Makefile tipc: remove node subscription infrastructure 2014-11-26 12:30:16 -05:00
msg.c tipc: cleanup core.c and core.h files 2015-01-12 16:24:31 -05:00
msg.h tipc: cleanup core.c and core.h files 2015-01-12 16:24:31 -05:00
name_distr.c tipc: convert name table read-write lock to RCU 2014-12-08 20:39:57 -05:00
name_distr.h tipc: remove node subscription infrastructure 2014-11-26 12:30:16 -05:00
name_table.c tipc: avoid double lock 'spin_lock:&seq->lock' 2014-12-09 18:27:03 -05:00
name_table.h tipc: convert name table read-write lock to RCU 2014-12-08 20:39:57 -05:00
net.c tipc: add net set to new netlink api 2014-11-21 15:01:31 -05:00
net.h tipc: add net set to new netlink api 2014-11-21 15:01:31 -05:00
netlink.c tipc: add name table dump to new netlink api 2014-11-21 15:01:32 -05:00
netlink.h tipc: cleanup core.c and core.h files 2015-01-12 16:24:31 -05:00
node.c tipc: fix broadcast wakeup contention after congestion 2014-12-10 14:45:33 -05:00
node.h tipc: use generic SKB list APIs to manage deferred queue of link 2014-11-26 12:30:17 -05:00
server.c tipc: cleanup core.c and core.h files 2015-01-12 16:24:31 -05:00
server.h tipc: cleanup core.c and core.h files 2015-01-12 16:24:31 -05:00
socket.c tipc: feed tipc sock pointer to tipc_sk_timeout routine 2015-01-12 16:24:32 -05:00
socket.h tipc: cleanup core.c and core.h files 2015-01-12 16:24:31 -05:00
subscr.c tipc: remove unnecessary wrapper functions of kernel timer APIs 2015-01-12 16:24:31 -05:00
subscr.h tipc: cleanup core.c and core.h files 2015-01-12 16:24:31 -05:00
sysctl.c tipc: add name distributor resiliency queue 2014-09-01 17:51:48 -07:00