1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

cache: reload only when switched to cleaner policy

Reload cache target only when lvm2 reload table with
cache with clearer policy.
This commit is contained in:
Zdenek Kabelac 2019-10-12 11:12:11 +02:00
parent ddaf2002c9
commit 36944e1009
2 changed files with 2 additions and 1 deletions

View File

@ -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.

View 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;