summaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
authorJoe Thornber <ejt@redhat.com>2014-06-24 23:36:58 +0400
committerMike Snitzer <snitzer@redhat.com>2014-08-01 20:30:33 +0400
commit304affaa88328fe8f40ff14f5e6ccbfad8f121eb (patch)
tree348c5e10428b41d41ede80db6c7fef7cf83b19fd /drivers/md
parent8c081b52c6833a30a69ea3bdcef316eccc740c87 (diff)
downloadlinux-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>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm-cache-target.c1
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