diff --git a/WHATS_NEW b/WHATS_NEW index 6ff4ccdf9..f29a498d0 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.177 - ==================================== + Make a pvmove LV locking holder. Do not change critical section counter on resume path without real resume. Enhance activation code to automatically suspend pvmove participants. Remove unnecessary single read from lvmdiskscan. diff --git a/lib/metadata/lv.c b/lib/metadata/lv.c index 4d35efe25..630880f51 100644 --- a/lib/metadata/lv.c +++ b/lib/metadata/lv.c @@ -1604,6 +1604,9 @@ const struct logical_volume *lv_lock_holder(const struct logical_volume *lv) if ((lv_is_raid_image(lv) || lv_is_raid_metadata(lv)) && lv_is_visible(lv)) return lv; + if (lv_is_pvmove(lv)) + return lv; + /* For other types, by default look for the first user */ dm_list_iterate_items(sl, &lv->segs_using_this_lv) { /* FIXME: complete this exception list */