From: Peter Hurley Date: Fri, 5 Aug 2011 14:44:21 +0000 (-0400) Subject: Bluetooth: cmtp: Fix deadlock in session deletion X-Git-Tag: v3.1-rc5~12^2~6^2~9^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7176522cdca1f0b78a1434b41761f0334511822a;p=pandora-kernel.git Bluetooth: cmtp: Fix deadlock in session deletion Commit fada4ac339 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 cmtp_del_connection() which is waiting for the thread to exit -- deadlock. Revert cmtp_reset_ctr to its original behavior: non-blocking signalling for the session to terminate. Signed-off-by: Peter Hurley Signed-off-by: Gustavo F. Padovan --- Reading git-diff-tree failed