mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
Suspend virtual origin before real snapshot.
Because preload of table for snapshot can produce snapshot metadata (in kernel cow header) read. Code should suspend origin first to avoid possible deadlock when preloading (thus calling snapshot in-kernel constructor) for origin with suspended cow device. (fixes previous commit)
This commit is contained in:
parent
66086ce962
commit
a908d0030c
@ -1806,7 +1806,7 @@ int lv_rename(struct cmd_context *cmd, struct logical_volume *lv,
|
||||
|
||||
/* rename active virtual origin too */
|
||||
if (lv_is_cow(lv) && lv_is_virtual_origin(lvl2.lv = origin_from_cow(lv)))
|
||||
dm_list_add(&lvs_changed, &lvl2.list);
|
||||
dm_list_add_h(&lvs_changed, &lvl2.list);
|
||||
|
||||
log_verbose("Writing out updated volume group");
|
||||
if (!vg_write(vg))
|
||||
|
Loading…
x
Reference in New Issue
Block a user