Remove uneeded flush work in workqueue_cheat

This commit is contained in:
Ciro Santilli
2017-05-15 09:36:40 +01:00
parent 690284a3bf
commit e157a9ac14
2 changed files with 2 additions and 8 deletions

View File

@ -43,9 +43,6 @@ void cleanup_module(void)
{
/* This waits for the work to finish. From docstring: */
/* > Cancel @work and wait for its execution to finish. */
cancel_work(&work);
/*cancel_work(&work);*/
cancel_work_sync(&work);
destroy_workqueue(queue);
}

View File

@ -39,9 +39,6 @@ int init_module(void)
void cleanup_module(void)
{
/* TODO why is this needed? Why flush_workqueue doesn't work? (re-insmod panics)
* http://stackoverflow.com/questions/37216038/whats-the-difference-between-flush-delayed-work-and-cancel-delayed-work-sync */
/*flush_workqueue(queue);*/
cancel_work_sync(&work);
/* Waits for jobs to finish. */
destroy_workqueue(queue);
}