Skip to content

Commit 0b22ff5

Browse files
author
Mike Snitzer
committed
dm: remove flush_scheduled_work() during local_exit()
Commit acfe0ad ("dm: allocate a special workqueue for deferred device removal") switched from using system workqueue to a single workqueue local to DM. But it didn't eliminate the call to flush_scheduled_work() that was introduced purely for the benefit of deferred device removal with commit 2c140a2 ("dm: allow remove to be deferred"). Since DM core uses its own workqueue (and queue_work) there is no need to call flush_scheduled_work() from local_exit(). local_exit()'s destroy_workqueue(deferred_remove_workqueue) handles flushing work started with queue_work(). Fixes: acfe0ad ("dm: allocate a special workqueue for deferred device removal") Signed-off-by: Mike Snitzer <[email protected]>
1 parent f0ac159 commit 0b22ff5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/md/dm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ static int __init local_init(void)
233233

234234
static void local_exit(void)
235235
{
236-
flush_scheduled_work();
237236
destroy_workqueue(deferred_remove_workqueue);
238237

239238
unregister_blkdev(_major, _name);

0 commit comments

Comments
 (0)