diff options
author | Joe Thornber <ejt@redhat.com> | 2014-06-24 21:36:58 +0200 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2014-08-01 18:30:33 +0200 |
commit | 304affaa88328fe8f40ff14f5e6ccbfad8f121eb (patch) | |
tree | 348c5e10428b41d41ede80db6c7fef7cf83b19fd /drivers/md | |
parent | dm cache: simplify deferred set reference count increments (diff) | |
download | linux-304affaa88328fe8f40ff14f5e6ccbfad8f121eb.tar.xz 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.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 |