dm cache: log error message if dm_kcopyd_copy() fails
A migration failure should be logged (albeit limited). Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com> Signed-off-by: Joe Thornber <ejt@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
This commit is contained in:
Родитель
80f659f3f5
Коммит
2c2263c93f
|
@ -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);
|
||||
}
|
||||
|
||||
if (r < 0)
|
||||
if (r < 0) {
|
||||
DMERR_LIMIT("issuing migration failed");
|
||||
migration_failure(mg);
|
||||
}
|
||||
}
|
||||
|
||||
static void avoid_copy(struct dm_cache_migration *mg)
|
||||
|
|
Загрузка…
Ссылка в новой задаче