]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: make link start event synchronous
authorJon Paul Maloy <jon.maloy@ericsson.com>
Tue, 7 Jan 2014 22:02:44 +0000 (17:02 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Jan 2014 23:44:26 +0000 (18:44 -0500)
commit894fd7e4eb407c6dc91000f443ac3a78309ac52d
treea60f322078d1d53319ef2ece706ac96470bf3cc0
parent0ed0deefdfa54a9d48da5db1598eb1f65137e30f
tipc: make link start event synchronous

When a link is created we delay the start event by launching it
to be executed later in a tasklet. As we hold all the
necessary locks at the moment of creation, and there is no risk
of deadlock or contention, this delay serves no purpose in the
current code.

We remove this obsolete indirection step, and the associated function
link_start(). At the same time, we rename the function tipc_link_stop()
to the more appropriate tipc_link_purge_queues().

Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Reviewed-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/bcast.c
net/tipc/link.c
net/tipc/link.h