]> sourceware.org Git - lvm2.git/commitdiff
cache: reload only when switched to cleaner policy
authorZdenek Kabelac <zkabelac@redhat.com>
Sat, 12 Oct 2019 09:12:11 +0000 (11:12 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 14 Oct 2019 13:14:22 +0000 (15:14 +0200)
Reload cache target only when lvm2 reload table with
cache with clearer policy.

WHATS_NEW
lib/metadata/cache_manip.c

index d530d9f7973244b851a07ca0382c62795884b985..bb806ac22a7a5e85887b0637fd843dfeafb6e50b 100644 (file)
--- 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.
index 65589f7a1fc9310923648353ab8a804298b6adf3..e4cd34560bacce140c3dd89db1fb05752c7886ff 100644 (file)
@@ -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;
 
This page took 0.051345 seconds and 5 git commands to generate.