* [PATCH 0/2] avoid possible deadlock while enable and disable bearer
@ 2013-08-08 10:45 Ding Tianhong
0 siblings, 0 replies; only message in thread
From: Ding Tianhong @ 2013-08-08 10:45 UTC (permalink / raw)
To: Jon Maloy, Allan Stephens, David S. Miller, Netdev,
tipc-discussion
It will occur two deadlock warming When run the command such as:
tipc-config -netid=1234 -addr=1.1.3 -be=eth:eth0
tipc-config -netid=1234 -addr=1.1.3 -bd=eth:eth0
The reason is that the tipc_link_delete() will cancel the link_timeout() and
disc_timeout() when disable the bearer, the xxx_timeout() will require b_ptr->lock,
but the b_ptr->lock is already hold, so the deadlock will occur.
We need to unlock the b_ptr->lock when calling xxx_timeout().
Ding Tianhong (1):
tipc: avoid possible deadlock while remove link_timeout()
Wang Weidong (1):
tipc: avoid possible deadlock while remove disc_timeout()
net/tipc/bearer.c | 14 ++++++++++----
net/tipc/link.c | 2 ++
2 files changed, 12 insertions(+), 4 deletions(-)
--
1.8.2.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-08-08 10:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-08 10:45 [PATCH 0/2] avoid possible deadlock while enable and disable bearer Ding Tianhong
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.