Commit 2c2263c9 authored by Heinz Mauelshagen's avatar Heinz Mauelshagen Committed by Mike Snitzer

dm cache: log error message if dm_kcopyd_copy() fails

A migration failure should be logged (albeit limited).
Signed-off-by: default avatarHeinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: default avatarJoe Thornber <ejt@redhat.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent 80f659f3
...@@ -886,8 +886,10 @@ static void issue_copy_real(struct dm_cache_migration *mg) ...@@ -886,8 +886,10 @@ static void issue_copy_real(struct dm_cache_migration *mg)
r = dm_kcopyd_copy(cache->copier, &o_region, 1, &c_region, 0, copy_complete, mg); r = dm_kcopyd_copy(cache->copier, &o_region, 1, &c_region, 0, copy_complete, mg);
} }
if (r < 0) if (r < 0) {
DMERR_LIMIT("issuing migration failed");
migration_failure(mg); migration_failure(mg);
}
} }
static void avoid_copy(struct dm_cache_migration *mg) static void avoid_copy(struct dm_cache_migration *mg)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment