diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2019-06-19 12:42:01 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2019-06-19 13:33:53 +0200 |
commit | d6bce036155ae973c869bdce3ca5f824f933f599 (patch) | |
tree | ca1fdb97342e7f4503a3daf7b58ca3fce8696cc0 | |
parent | 8623e336513c6ac6fcb24aa7e2ef10b8a3a36c59 (diff) | |
download | lvm2-d6bce036155ae973c869bdce3ca5f824f933f599.tar.gz |
mirror: fix monitoring change
Commit a8921be641afe865c177e11b8859f4b937f76995 was supposedly a fix
for unwanted table reload - however before final commit, the tiny
change has been made that was believed to be an enhancment
of original prepared patch. Unfortunatelly the function
locking_is_clustered is not meant to be an equivalent test
of original function. Drop this change and using
original patch.
-rw-r--r-- | lib/activate/activate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/activate/activate.c b/lib/activate/activate.c index dc9bc9e36..b3b8a2534 100644 --- a/lib/activate/activate.c +++ b/lib/activate/activate.c @@ -2048,12 +2048,12 @@ int monitor_dev_for_events(struct cmd_context *cmd, const struct logical_volume } else continue; - if (!locking_is_clustered() && !vg_write_lock_held() && lv_is_mirror(lv)) { + if (!cmd->is_clvmd && !vg_write_lock_held() && lv_is_mirror(lv)) { /* * Commands vgchange and lvchange do use read-only lock when changing * monitoring (--monitor y|n). All other use cases hold 'write-lock' * so they skip this dm mirror table refreshing step. - * Shortcut can't be applied with clustered locking. + * Shortcut is also not applied with clvmd. */ if (!_lv_activate_lv(lv, &mirr_laopts)) { stack; |