提交 2c2263c9 编写于 作者: H Heinz Mauelshagen 提交者: Mike Snitzer

dm cache: log error message if dm_kcopyd_copy() fails

A migration failure should be logged (albeit limited).
Signed-off-by: NHeinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: NJoe Thornber <ejt@redhat.com>
Signed-off-by: NMike Snitzer <snitzer@redhat.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册