linux/net/bluetooth
Peter Hurley 8624f2bb85 Bluetooth: bnep: Fix deadlock in session deletion
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 <jaikumar@google.com>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
2011-08-11 18:19:03 -07:00
..
bnep Bluetooth: bnep: Fix deadlock in session deletion 2011-08-11 18:19:03 -07:00
cmtp Bluetooth: Kill set but unused variable 'cmd' in cmtp_recv_capimsg() 2011-07-11 11:59:18 -07:00
hidp Bluetooth: Fix hidp disconnect deadlocks and lost wakeup 2011-07-18 12:28:02 -07:00
rfcomm Bluetooth: rfcomm: Fix lost wakeups waiting to accept socket 2011-08-02 15:09:52 -07:00
af_bluetooth.c Bluetooth: Fix lost wakeups waiting for sock state change 2011-08-02 15:10:08 -07:00
hci_conn.c Bluetooth: Fix memory leak under page timeouts 2011-07-18 12:28:02 -07:00
hci_core.c Bluetooth: Don't use cmd_timer to timeout HCI reset command 2011-08-11 18:18:45 -07:00
hci_event.c Bluetooth: Add support for storing the key size 2011-07-11 11:59:36 -07:00
hci_sock.c Bluetooth: Move blacklisting functions to hci_core 2011-07-11 11:59:23 -07:00
hci_sysfs.c Bluetooth: Add variable SSP auto-accept delay support 2011-04-28 16:02:30 -03:00
Kconfig Bluetooth: uses crypto interfaces, select CRYPTO 2011-07-11 11:59:25 -07:00
l2cap_core.c Bluetooth: l2cap: Fix lost wakeup waiting for ERTM acks 2011-08-02 15:11:15 -07:00
l2cap_sock.c Bluetooth: Fixed wrong L2CAP Sock timer value 2011-08-09 11:04:34 -07:00
lib.c Bluetooth: Add bt_printk 2011-07-11 11:59:26 -07:00
Makefile Bluetooth: Implement the first SMP commands 2011-07-11 11:59:20 -07:00
mgmt.c Bluetooth: Add support for storing the key size 2011-07-11 11:59:36 -07:00
sco.c Bluetooth: sco: Fix lost wakeups waiting to accept socket 2011-08-02 15:10:43 -07:00
smp.c Bluetooth: Add support for storing the key size 2011-07-11 11:59:36 -07:00