From eedf7e47daa0b8530246a8c9107c007fbf8231bf Mon Sep 17 00:00:00 2001 From: Peter Zijlstra Date: Wed, 29 Oct 2014 16:17:12 +0100 Subject: [PATCH] rfcomm, sched/wait: Fix broken wait construct rfcomm_run() is a tad broken in that is has a nested wait loop. One cannot rely on p->state for the outer wait because the inner wait will overwrite it. Fix this using the new wait_woken() facility. Signed-off-by: Peter Zijlstra (Intel) Cc: Peter Hurley Cc: Alexander Holler Cc: David S. Miller Cc: Gustavo Padovan Cc: Joe Perches Cc: Johan Hedberg Cc: Libor Pechacek Cc: Linus Torvalds Cc: Marcel Holtmann Cc: Seung-Woo Kim Cc: Vignesh Raman Cc: linux-bluetooth@vger.kernel.org Cc: netdev@vger.kernel.org Signed-off-by: Ingo Molnar --- Reading git-format-patch failed