[<prev] [next>] [day] [month] [year] [list]
Date: Thu, 8 Aug 2013 18:45:01 +0800
From: Ding Tianhong <dingtianhong@...wei.com>
To: Jon Maloy <jon.maloy@...csson.com>,
Allan Stephens <allan.stephens@...driver.com>,
"David S. Miller" <davem@...emloft.net>,
Netdev <netdev@...r.kernel.org>,
<tipc-discussion@...ts.sourceforge.net>
Subject: [PATCH 0/2] avoid possible deadlock while enable and disable bearer
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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists