diff options
author | Joe Thornber <ejt@redhat.com> | 2014-06-24 15:36:58 -0400 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2014-08-01 12:30:33 -0400 |
commit | 304affaa88328fe8f40ff14f5e6ccbfad8f121eb (patch) | |
tree | 348c5e10428b41d41ede80db6c7fef7cf83b19fd /drivers/md/dm-cache-target.c | |
parent | 8c081b52c6833a30a69ea3bdcef316eccc740c87 (diff) |
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>
Diffstat (limited to 'drivers/md/dm-cache-target.c')
-rw-r--r-- | drivers/md/dm-cache-target.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/dm-cache-target.c b/drivers/md/dm-cache-target.c index 2a156af246b2..75073c83a4b5 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 |