Commit f05e6ba
Bluetooth: Clear suspend tasks on unregister
[ Upstream commit 0e99528 ]
While unregistering, make sure to clear the suspend tasks before
cancelling the work. If the unregister is called during resume from
suspend, this will unnecessarily add 2s to the resume time otherwise.
Fixes: 4e8c36c (Bluetooth: Fix suspend notifier race)
Signed-off-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent df0e32b commit f05e6ba
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3442 | 3442 | | |
3443 | 3443 | | |
3444 | 3444 | | |
| 3445 | + | |
| 3446 | + | |
| 3447 | + | |
| 3448 | + | |
| 3449 | + | |
| 3450 | + | |
| 3451 | + | |
| 3452 | + | |
| 3453 | + | |
| 3454 | + | |
3445 | 3455 | | |
3446 | 3456 | | |
3447 | 3457 | | |
| |||
3785 | 3795 | | |
3786 | 3796 | | |
3787 | 3797 | | |
| 3798 | + | |
3788 | 3799 | | |
3789 | 3800 | | |
3790 | 3801 | | |
| |||
0 commit comments