OSDN Git Service

tools/testing/nvdimm: remove unneeded flush_workqueue
authorran jianping <ran.jianping@zte.com.cn>
Sun, 24 Apr 2022 06:26:55 +0000 (06:26 +0000)
committerDan Williams <dan.j.williams@intel.com>
Tue, 26 Apr 2022 05:00:35 +0000 (22:00 -0700)
All work currently pending will be done first by calling destroy_workqueue,
so there is no need to flush it explicitly.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ran jianping <ran.jianping@zte.com.cn>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Link: https://lore.kernel.org/r/20220424062655.3221152-1-ran.jianping@zte.com.cn
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
tools/testing/nvdimm/test/nfit.c

index 1da76cc..e7e1a64 100644 (file)
@@ -3375,7 +3375,6 @@ static __exit void nfit_test_exit(void)
 {
        int i;
 
-       flush_workqueue(nfit_wq);
        destroy_workqueue(nfit_wq);
        for (i = 0; i < NUM_NFITS; i++)
                platform_device_unregister(&instances[i]->pdev);