From: Vladislav P Date: Mon, 14 Feb 2011 17:21:50 +0000 (-0200) Subject: Bluetooth: Release BTM while sleeping to avoid deadlock X-Git-Tag: v2.6.38-rc8~29^2~10^2~13^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=840af824b2bf9194ea596e0ddc7aa05066794ca1;p=platform%2Fupstream%2Fkernel-adaptation-pc.git Bluetooth: Release BTM while sleeping to avoid deadlock Signed-off-by: Vladislav P Signed-off-by: Gustavo F. Padovan --- diff --git a/net/bluetooth/rfcomm/tty.c b/net/bluetooth/rfcomm/tty.c index 2575c2d..d7b9af4 100644 --- a/net/bluetooth/rfcomm/tty.c +++ b/net/bluetooth/rfcomm/tty.c @@ -727,7 +727,9 @@ static int rfcomm_tty_open(struct tty_struct *tty, struct file *filp) break; } + tty_unlock(); schedule(); + tty_lock(); } set_current_state(TASK_RUNNING); remove_wait_queue(&dev->wait, &wait);