]> git.baikalelectronics.ru Git - kernel.git/commit
btusb bluetooth driver: wait for 'waker' work too before closing
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Nov 2009 21:32:29 +0000 (13:32 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Nov 2009 21:32:29 +0000 (13:32 -0800)
commit420cda4bcfd7bf6796f5b41f67e9b501ee691e05
treee633e9d3f33b4a72ac3aea94a5868dda2828375d
parent29b97531e32613800eb72fea8446f22fcbbdef69
btusb bluetooth driver: wait for 'waker' work too before closing

Rafael debugged a resume-time hang (with oopses in workqueue handling)
on his laptop that was due to the 'waker' workqueue entry being
disconnected and then released without the workqueue entry having been
synchronized.

Several people were involved, with Oleg Nesterov doing a debugging patch
showing what workqueue entry was corrupt etc.

This was a regression introduced by commit 5153595b78 ("Bluetooth: Add
USB autosuspend support to btusb driver") as Rafael points out (not
actually bisected, but it became clear once the bug was found).

Tested-and-reported-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Oliver Neukum <oliver@neukum.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/bluetooth/btusb.c