Message ID | alpine.LRH.2.02.2003100505050.7499@file01.intranet.prod.int.rdu2.redhat.com |
---|---|
State | New |
Headers | show |
Series | [v4.4,v4.9] dm cache: fix a crash due to incorrect work item cancelling | expand |
Index: linux-stable/drivers/md/dm-cache-target.c =================================================================== --- linux-stable.orig/drivers/md/dm-cache-target.c 2020-03-10 10:03:40.000000000 +0100 +++ linux-stable/drivers/md/dm-cache-target.c 2020-03-10 10:03:58.000000000 +0100 @@ -2192,8 +2192,8 @@ static void wait_for_migrations(struct c static void stop_worker(struct cache *cache) { - cancel_delayed_work(&cache->waker); - flush_workqueue(cache->wq); + cancel_delayed_work_sync(&cache->waker); + drain_workqueue(cache->wq); } static void requeue_deferred_cells(struct cache *cache)