From 535fddee9c1a9fc31baa5e741304433808bd9433 Mon Sep 17 00:00:00 2001 From: Heinz Mauelshagen Date: Mon, 14 Oct 2013 17:14:45 +0200 Subject: [PATCH 2/5] dm cache: log error message if dm_kcopyd_copy() fails A migration failure should be logged (albeit limited). Signed-off-by: Heinz Mauelshagen Signed-off-by: Mike Snitzer --- drivers/md/dm-cache-target.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) Index: linux/drivers/md/dm-cache-target.c =================================================================== --- linux.orig/drivers/md/dm-cache-target.c +++ linux/drivers/md/dm-cache-target.c @@ -924,8 +924,10 @@ static void issue_copy_real(struct dm_ca 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)