Thread (2 messages) flat view 2 messages, 2 authors, 2011-08-11

Re: [PATCH v2] Bluetooth: bnep: Fix deadlock in session deletion

From: Gustavo Padovan <hidden>
Date: 2011-08-11 21:05:33

Hi Peter,

* Peter Hurley [off-list ref] [2011-08-05 10:41:35 -0400]:
Commit f4d7cd4a4c introduced the usage of kthread API.
kthread_stop is a blocking function which returns only when
the thread exits. In this case, the thread can't exit because it's
waiting for the write lock, which is being held by bnep_del_connection()
which is waiting for the thread to exit -- deadlock.

Use atomic_t/wake_up_process instead to signal to the thread to exit.

Signed-off-by: Jaikumar Ganesh <redacted>
Signed-off-by: Peter Hurley <redacted>
---
 net/bluetooth/bnep/bnep.h |    1 +
 net/bluetooth/bnep/core.c |    9 +++++----
 2 files changed, 6 insertions(+), 4 deletions(-)
Applied, thanks.

	Gustavo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help