Commit 404291ac authored by Linus Torvalds's avatar Linus Torvalds
Browse files

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

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 7bee549e

 ("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: default avatarRafael J. Wysocki <>
Acked-by: default avatarOliver Neukum <>
Cc: Oleg Nesterov <>
Cc: Tejun Heo <>
Cc: Marcel Holtmann <>
Signed-off-by: default avatarLinus Torvalds <>
parent fd801452
......@@ -591,6 +591,7 @@ static int btusb_close(struct hci_dev *hdev)
return 0;
clear_bit(BTUSB_ISOC_RUNNING, &data->flags);
clear_bit(BTUSB_BULK_RUNNING, &data->flags);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment