1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-08 10:03:17 +03:00

locking: pvmove is locking holding LV

As we do get lock for pvmove LV - it's lockholder ATM.
This commit is contained in:
Zdenek Kabelac 2017-11-24 13:55:57 +01:00
parent 8cf10948bd
commit b5be7420d9
2 changed files with 4 additions and 0 deletions

View File

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

View File

@ -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 */