Skip to content

Commit

Permalink
dm cache: fail migrations in the do_worker error path
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
  • Loading branch information
Joe Thornber authored and Mike Snitzer committed Aug 1, 2014
1 parent 8c081b5 commit 304affa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/md/dm-cache-target.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 304affa

Please sign in to comment.