On 2/11/2023 4:25 AM, Lukas Wunner wrote: > When a DOE mailbox is torn down, its workqueue is flushed once in > pci_doe_flush_mb() through a call to flush_workqueue() and subsequently > flushed once more in pci_doe_destroy_workqueue() through a call to > destroy_workqueue(). > > Deduplicate by dropping flush_workqueue() from pci_doe_flush_mb(). > > Rename pci_doe_flush_mb() to pci_doe_cancel_tasks() to more aptly > describe what it now does. > > Tested-by: Ira Weiny <ira.weiny@xxxxxxxxx> > Signed-off-by: Lukas Wunner <lukas@xxxxxxxxx> Reviewed-by: Ming Li <ming4.li@xxxxxxxxx>