Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 386cb7cd authored by Mike Snitzer's avatar Mike Snitzer
Browse files

dm cache: do not wake_worker() in free_migration()



All methods that queue work call wake_worker() as you'd expect.
E.g. cell_defer, defer_bio, quiesce_migration (which is called by
writeback, promote, demote_then_promote, invalidate, discard, etc).

Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent 255eac20
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -424,7 +424,6 @@ static void free_migration(struct dm_cache_migration *mg)
		wake_up(&cache->migration_wait);
		wake_up(&cache->migration_wait);


	mempool_free(mg, cache->migration_pool);
	mempool_free(mg, cache->migration_pool);
	wake_worker(cache);
}
}


static int prealloc_data_structs(struct cache *cache, struct prealloc *p)
static int prealloc_data_structs(struct cache *cache, struct prealloc *p)