Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtip32xx: Remove redundant 'flush_workqueue()' calls

'destroy_workqueue()' already drains the queue before destroying it, so
there is no need to flush it explicitly.

Remove the redundant 'flush_workqueue()' calls.

This was generated with coccinelle:

@@
expression E;
@@
- flush_workqueue(E);
destroy_workqueue(E);

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/0fea349c808c6cfbf549b0e33701320c7860c8b7.1634234221.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Christophe JAILLET and committed by
Jens Axboe
c573d586 8b9e2291

-2
-2
drivers/block/mtip32xx/mtip32xx.c
··· 4063 4063 4064 4064 msi_initialize_err: 4065 4065 if (dd->isr_workq) { 4066 - flush_workqueue(dd->isr_workq); 4067 4066 destroy_workqueue(dd->isr_workq); 4068 4067 drop_cpu(dd->work[0].cpu_binding); 4069 4068 drop_cpu(dd->work[1].cpu_binding); ··· 4120 4121 mtip_block_remove(dd); 4121 4122 4122 4123 if (dd->isr_workq) { 4123 - flush_workqueue(dd->isr_workq); 4124 4124 destroy_workqueue(dd->isr_workq); 4125 4125 drop_cpu(dd->work[0].cpu_binding); 4126 4126 drop_cpu(dd->work[1].cpu_binding);