mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tools: missing sync after deactivation
Caching of DM states optimisation revealed some missing synchronisation points.
This commit is contained in:
parent
e10f67e917
commit
f8d12913e7
@ -358,6 +358,8 @@ static int _lvchange_resync(struct cmd_context *cmd, struct logical_volume *lv)
|
||||
if (monitored != DMEVENTD_MONITOR_IGNORE)
|
||||
init_dmeventd_monitor(monitored);
|
||||
init_mirror_in_sync(0);
|
||||
if (!sync_local_dev_names(cmd))
|
||||
log_warn("Failed to sync local dev names.");
|
||||
|
||||
log_very_verbose("Starting resync of %s%s%s%s %s.",
|
||||
(active) ? "active " : "",
|
||||
|
@ -900,6 +900,10 @@ void lv_spawn_background_polling(struct cmd_context *cmd,
|
||||
const char *pvname;
|
||||
const struct logical_volume *lv_mirr = NULL;
|
||||
|
||||
/* Ensure there is nothing waiting on cookie */
|
||||
if (!sync_local_dev_names(cmd))
|
||||
log_warn("Failed to sync local dev names.");
|
||||
|
||||
if (lv_is_pvmove(lv))
|
||||
lv_mirr = lv;
|
||||
else if (lv_is_locked(lv))
|
||||
|
Loading…
Reference in New Issue
Block a user