This stops spurious wake ups from calls to prealloc_free_structs().
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
wake_up(&cache->migration_wait);
mempool_free(mg, cache->migration_pool);
- wake_worker(cache);
}
static int prealloc_data_structs(struct cache *cache, struct prealloc *p)
{
dec_io_migrations(mg->cache);
free_migration(mg);
+ wake_worker(mg->cache);
}
static void migration_failure(struct dm_cache_migration *mg)
bio_endio(bio, 0);
cell_defer(mg->cache, mg->new_ocell, false);
free_migration(mg);
+ wake_worker(mg->cache);
}
static void issue_copy_or_discard(struct dm_cache_migration *mg)