Skip to contentSkip to conversation

tools/testing/nvdimm: remove unneeded flush_workqueue

PATCH In review [email protected] 3 participants 3 messages Apr 24, 2022 – Apr 26, 2022 libnvdimm: non-volatile memory device

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/testing/nvdimm: remove unneeded flush_workqueue

From: ran jianping <[email protected]>

All work currently pending will be done first by calling destroy_workqueue, so there is no need to flush it explicitly.

---
 tools/testing/nvdimm/test/nfit.c | 1 -
 1 file changed, 1 deletion(-)
tools/testing/nvdimm/test/nfit.c +0 -1
index 1da76ccde448..e7e1a640e482 100644
@@ -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);
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · On Sun, Apr 24, 2022 at 06:26:55AM +0000, [email protected] wrote:

From: ran jianping <[email protected]>

All work currently pending will be done first by calling destroy_workqueue, so there is no need to flush it explicitly.

Quoted 19 lines
---
 tools/testing/nvdimm/test/nfit.c | 1 -
 1 file changed, 1 deletion(-)
tools/testing/nvdimm/test/nfit.c +0 -1
index 1da76ccde448..e7e1a640e482 100644
@@ -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);
Signature · 1 line
2.25.1