projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80f659f
)
dm cache: log error message if dm_kcopyd_copy() fails
author
Heinz Mauelshagen
<heinzm@redhat.com>
Mon, 14 Oct 2013 15:14:45 +0000
(17:14 +0200)
committer
Mike Snitzer
<snitzer@redhat.com>
Sat, 9 Nov 2013 23:20:19 +0000
(18:20 -0500)
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>
drivers/md/dm-cache-target.c
patch
|
blob
|
history
diff --git
a/drivers/md/dm-cache-target.c
b/drivers/md/dm-cache-target.c
index dc63eb2aa69c548e1a10366121e08f7620ee74f6..05a10c02043f2b6f3513997da80941b67962c9f2 100644
(file)
--- 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)