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:
parent
8cf10948bd
commit
b5be7420d9
@ -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.
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user