From: Peter Hurley Date: Fri, 5 Aug 2011 14:41:35 +0000 (-0400) Subject: Bluetooth: bnep: Fix deadlock in session deletion X-Git-Tag: v3.1-rc5~12^2~6^2~9^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=751c10a56802513a6b057c8cf1552cecc1c9afde;p=pandora-kernel.git 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 Signed-off-by: Peter Hurley Signed-off-by: Gustavo F. Padovan --- Reading git-diff-tree failed