Re: [PATCH] Bluetooth: cmtp: Fix deadlock in session deletion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Peter,

* Peter Hurley <peter@xxxxxxxxxxxxxxxxxx> [2011-08-05 10:44:21 -0400]:

> 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 <peter@xxxxxxxxxxxxxxxxxx>
> ---
>  net/bluetooth/cmtp/capi.c |    3 ++-
>  net/bluetooth/cmtp/cmtp.h |    1 +
>  net/bluetooth/cmtp/core.c |    5 +++--
>  3 files changed, 6 insertions(+), 3 deletions(-)

Applied, thanks.

	Gustavo
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux