stable-2.02 - snapshot: always activate
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=4743c4900ddf0558f5949d7d113be9525bf67785 Commit: 4743c4900ddf0558f5949d7d113be9525bf67785 Parent: c6e079cda3d2c15c0dddf34513e045188abbac15 Author: Zdenek Kabelac <[email protected]> AuthorDate: Mon Aug 26 15:13:55 2019 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Mon Aug 26 15:36:41 2019 +0200
snapshot: always activate
Drop the 'cluster-only' optimization so we do resume ALL device before we try to wait on cookie before 'removal' operation.
It's more correct order of operation - alhtough possibly slightly less efficient - but until we have correct list of operations 'in-progress' we can't do anything better.
--- lib/metadata/snapshot_manip.c | 8 +------- 1 files changed, 1 insertions(+), 7 deletions(-)
lib/metadata/snapshot_manip.c +1 -7
@@ -361,13 +361,7 @@ int vg_remove_snapshot(struct logical_volume *cow)return 0 ; } -/* -* For merged snapshot and clustered VG activate cow LV so -* the following call to deactivate_lv() can clean-up table -* entries. For this clustered lock need to be held. -*/ -if (vg_is_clustered (cow->vg) && - merging_snapshot && !activate_lv (cow->vg->cmd, cow)) { +if (merging_snapshot && !activate_lv (cow->vg->cmd, cow)) {log_error ("Failed to activate %s." , cow->name);return 0 ; }