dm cache: fail migrations in the do_worker error path
authorJoe Thornber <ejt@redhat.com>
Tue, 24 Jun 2014 19:36:58 +0000 (15:36 -0400)
committerMike Snitzer <snitzer@redhat.com>
Fri, 1 Aug 2014 16:30:33 +0000 (12:30 -0400)
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-cache-target.c

index 2a156af246b2348e650b6845237378cefcddaf34..75073c83a4b58cc89d4d80e59fff6eb64aa0438e 100644 (file)
@@ -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