From 36944e1009e932902269d3eab547e0b19da13468 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sat, 12 Oct 2019 11:12:11 +0200 Subject: [PATCH] cache: reload only when switched to cleaner policy Reload cache target only when lvm2 reload table with cache with clearer policy. --- WHATS_NEW | 1 + lib/metadata/cache_manip.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW b/WHATS_NEW index d530d9f79..bb806ac22 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.03.06 - ================================ + Reload cleanered cache DM only with cleaner policy. Fix cmd return when zering of cachevol fails. Extend lvs to show all VDO properties. Preserve VDO write policy with vdopool. diff --git a/lib/metadata/cache_manip.c b/lib/metadata/cache_manip.c index 65589f7a1..e4cd34560 100644 --- a/lib/metadata/cache_manip.c +++ b/lib/metadata/cache_manip.c @@ -545,7 +545,7 @@ int lv_cache_wait_for_clean(struct logical_volume *cache_lv, int *is_clean) * TODO: add check if extra suspend resume is necessary * ATM this is workaround for missing cache sync when cache gets clean */ - if (1) { + if (cleaner_policy) { if (!lv_refresh_suspend_resume(lock_lv)) return_0; -- 2.43.5