Re: [PATCH] Bluetooth: hci_qca: Use del_timer_sync() before freeing
From: Guenter Roeck
Date: Wed Apr 06 2022 - 14:01:37 EST
On 4/6/22 08:46, Steven Rostedt wrote:
On Wed, 6 Apr 2022 08:39:07 -0700
Guenter Roeck <linux@xxxxxxxxxxxx> wrote:
ie move this destroy_workqueue() up ?
What prevents the timer code from queueing work into the destroyed
workqueue ?
So we have a chicken verses egg issue here?
Almost looks like it, unless I am missing something. Maybe some flag
is needed to prevent the timer handling code from queuing into the
destroyed workqueue, or the workqueue handler from updating the timer.
Guenter