From: Heinz Mauelshagen Date: Mon, 14 Oct 2013 15:14:45 +0000 (+0200) Subject: dm cache: log error message if dm_kcopyd_copy() fails X-Git-Tag: upstream/snapshot3+hdmi~3781^2~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c2263c93f70c6abdce90ad96a854760532aa52f;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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: Joe Thornber Signed-off-by: Mike Snitzer --- diff --git a/drivers/md/dm-cache-target.c b/drivers/md/dm-cache-target.c index dc63eb2..05a10c0 100644 --- a/drivers/md/dm-cache-target.c +++ b/drivers/md/dm-cache-target.c @@ -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)