From 304affaa88328fe8f40ff14f5e6ccbfad8f121eb Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Tue, 24 Jun 2014 15:36:58 -0400 Subject: dm cache: fail migrations in the do_worker error path Signed-off-by: Joe Thornber Signed-off-by: Mike Snitzer diff --git a/drivers/md/dm-cache-target.c b/drivers/md/dm-cache-target.c index 2a156af..75073c8 100644 --- a/drivers/md/dm-cache-target.c +++ b/drivers/md/dm-cache-target.c @@ -1720,6 +1720,7 @@ static void do_worker(struct work_struct *ws) if (commit_if_needed(cache)) { process_deferred_flush_bios(cache, false); + process_migrations(cache, &cache->need_commit_migrations, migration_failure); /* * FIXME: rollback metadata or just go into a -- cgit v0.10.2