]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: drop subscriber connection id invalidation
authorErik Hugne <erik.hugne@ericsson.com>
Thu, 6 Mar 2014 13:40:19 +0000 (14:40 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Mar 2014 19:46:23 +0000 (14:46 -0500)
commit53aa3625f6145433f28d8c0aa3076f7a8db06d32
tree08ca164fb87ec0848efef992466a08d6469bbb8b
parentf936651f490f5eb446bcbf2f431087c91c077831
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>
net/tipc/subscr.c