]> git.baikalelectronics.ru Git - kernel.git/commitdiff
scsi: mpt3sas: Remove flush_scheduled_work() call
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Thu, 9 Jun 2022 13:26:48 +0000 (22:26 +0900)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 22 Jun 2022 01:52:44 +0000 (21:52 -0400)
It seems to me that mpt3sas driver is using dedicated workqueues and is not
calling schedule{,_delayed}_work{,_on}(). Then, there will be no work to
flush using flush_scheduled_work().

Link: https://lore.kernel.org/r/f3b97c7c-1094-4e46-20d8-4321716d6f3f@I-love.SAKURA.ne.jp
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpt3sas/mpt3sas_scsih.c

index a8a8c2d969c2ccc25802423824ed55d179b34c99..f32173352d4e2117284fa98dc57a46d2c70c9100 100644 (file)
@@ -12409,7 +12409,6 @@ scsih_suspend(struct device *dev)
                return rc;
 
        mpt3sas_base_stop_watchdog(ioc);
-       flush_scheduled_work();
        scsi_block_requests(shost);
        _scsih_nvme_shutdown(ioc);
        ioc_info(ioc, "pdev=0x%p, slot=%s, entering operating state\n",