diff options
author | Joe Thornber <ejt@redhat.com> | 2014-06-24 19:36:58 (GMT) |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2014-08-01 16:30:33 (GMT) |
commit | 304affaa88328fe8f40ff14f5e6ccbfad8f121eb (patch) | |
tree | 348c5e10428b41d41ede80db6c7fef7cf83b19fd | |
parent | 8c081b52c6833a30a69ea3bdcef316eccc740c87 (diff) | |
download | linux-304affaa88328fe8f40ff14f5e6ccbfad8f121eb.tar.xz |
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>
-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 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 |