Commit dbbf1689 authored by ran jianping's avatar ran jianping Committed by Dan Williams
Browse files

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: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarran jianping <ran.jianping@zte.com.cn>
Reviewed-by: default avatarIra Weiny <ira.weiny@intel.com>
Link: https://lore.kernel.org/r/20220424062655.3221152-1-ran.jianping@zte.com.cn


Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent af2d861d
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);