summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-cache-target.c
diff options
context:
space:
mode:
authorHeinz Mauelshagen <heinzm@redhat.com>2013-10-14 17:14:45 +0200
committerMike Snitzer <snitzer@redhat.com>2013-11-09 18:20:19 -0500
commit2c2263c93f70c6abdce90ad96a854760532aa52f (patch)
tree607e1dfaa33942ce345c4b052751a860b3e304e4 /drivers/md/dm-cache-target.c
parent80f659f3f546beddc5abbec4f1c5f45d22d81348 (diff)
downloadlinux-2c2263c93f70c6abdce90ad96a854760532aa52f.tar.bz2
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>
Diffstat (limited to 'drivers/md/dm-cache-target.c')
-rw-r--r--drivers/md/dm-cache-target.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/md/dm-cache-target.c b/drivers/md/dm-cache-target.c
index dc63eb2aa69c..05a10c02043f 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)