Explorar o código

dm cache: fail migrations in the do_worker error path

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Joe Thornber %!s(int64=11) %!d(string=hai) anos
pai
achega
304affaa88
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      drivers/md/dm-cache-target.c

+ 1 - 0
drivers/md/dm-cache-target.c

@@ -1720,6 +1720,7 @@ static void do_worker(struct work_struct *ws)
 
 
 		if (commit_if_needed(cache)) {
 		if (commit_if_needed(cache)) {
 			process_deferred_flush_bios(cache, false);
 			process_deferred_flush_bios(cache, false);
+			process_migrations(cache, &cache->need_commit_migrations, migration_failure);
 
 
 			/*
 			/*
 			 * FIXME: rollback metadata or just go into a
 			 * FIXME: rollback metadata or just go into a