diff options
author | Erik Hugne <erik.hugne@ericsson.com> | 2014-03-06 14:40:19 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-06 20:46:23 +0100 |
commit | edcc0511b5ee7235282a688cd604e3ae7f9e1fc9 (patch) | |
tree | 08ca164fb87ec0848efef992466a08d6469bbb8b /net/tipc/name_table.c | |
parent | tipc: avoid to unnecessary process switch under non-block mode (diff) | |
download | linux-edcc0511b5ee7235282a688cd604e3ae7f9e1fc9.tar.xz linux-edcc0511b5ee7235282a688cd604e3ae7f9e1fc9.zip |
tipc: drop subscriber connection id invalidation
When a topology server subscriber is disconnected, the associated
connection id is set to zero. A check vs zero is then done in the
subscription timeout function to see if the subscriber have been
shut down. This is unnecessary, because all subscription timers
will be cancelled when a subscriber terminates. Setting the
connection id to zero is actually harmful because id zero is the
identity of the topology server listening socket, and can cause a
race that leads to this socket being closed instead.
Signed-off-by: Erik Hugne <erik.hugne@ericsson.com>
Acked-by: Ying Xue <ying.xue@windriver.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/name_table.c')
0 files changed, 0 insertions, 0 deletions