Skip to content

Commit

Permalink
dm cache: do not wake_worker() in free_migration()
Browse files Browse the repository at this point in the history
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: Mike Snitzer <snitzer@redhat.com>
  • Loading branch information
snitm committed Jul 17, 2015
1 parent 255eac2 commit 386cb7c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/md/dm-cache-target.c
Expand Up @@ -424,7 +424,6 @@ static void free_migration(struct dm_cache_migration *mg)
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)
Expand Down

0 comments on commit 386cb7c

Please sign in to comment.