mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
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.
This commit is contained in:
parent
7833c45fbe
commit
af0b84ccc8
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user