]> git.baikalelectronics.ru Git - kernel.git/commitdiff
scsi: bfa: Remove unneeded flush_workqueue()
authorran jianping <ran.jianping@zte.com.cn>
Sun, 24 Apr 2022 06:18:45 +0000 (06:18 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 26 Apr 2022 03:38:38 +0000 (23:38 -0400)
All work currently pending will be done first by calling
destroy_workqueue(). There is no need to flush it explicitly.

Link: https://lore.kernel.org/r/20220424061845.3218774-1-ran.jianping@zte.com.cn
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ran jianping <ran.jianping@zte.com.cn>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/bfa/bfad_im.c

index 8419a1a89485356891b9d89913d69982b7b915d5..c335f7a188d22d6785569d0f20822ac1461c5c38 100644 (file)
@@ -755,7 +755,6 @@ void
 bfad_destroy_workq(struct bfad_im_s *im)
 {
        if (im && im->drv_workq) {
-               flush_workqueue(im->drv_workq);
                destroy_workqueue(im->drv_workq);
                im->drv_workq = NULL;
        }