Skip to content

Commit dbbf168

Browse files
ran jianpingdjbw
authored andcommitted
tools/testing/nvdimm: remove unneeded flush_workqueue
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>
1 parent af2d861 commit dbbf168

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

  • tools/testing/nvdimm/test

tools/testing/nvdimm/test/nfit.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3375,7 +3375,6 @@ static __exit void nfit_test_exit(void)
33753375
{
33763376
int i;
33773377

3378-
flush_workqueue(nfit_wq);
33793378
destroy_workqueue(nfit_wq);
33803379
for (i = 0; i < NUM_NFITS; i++)
33813380
platform_device_unregister(&instances[i]->pdev);

0 commit comments

Comments
 (0)