summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorJoe Thornber2014-06-24 21:36:58 +0200
committerMike Snitzer2014-08-01 18:30:33 +0200
commit304affaa88328fe8f40ff14f5e6ccbfad8f121eb (patch)
tree348c5e10428b41d41ede80db6c7fef7cf83b19fd /drivers/md
parentdm cache: simplify deferred set reference count increments (diff)
downloadkernel-qcow2-linux-304affaa88328fe8f40ff14f5e6ccbfad8f121eb.tar.gz
kernel-qcow2-linux-304affaa88328fe8f40ff14f5e6ccbfad8f121eb.tar.xz
kernel-qcow2-linux-304affaa88328fe8f40ff14f5e6ccbfad8f121eb.zip
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