]> sourceware.org Git - lvm2.git/commitdiff
vgchange: drop extra counting
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 8 Dec 2017 12:17:34 +0000 (13:17 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 8 Dec 2017 12:21:14 +0000 (13:21 +0100)
As the loop for background polling _poll_lvs_in_vg checks for active LVs,
avoid doing unnecessary extra check before.

WHATS_NEW
tools/vgchange.c

index 4659d555033af8d8483554732f4f4a691ef14ed6..db256b0f80d8313597bb63d451122846ff5335a3 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.02.177 -
 ====================================
+  Reduce checks for active LVs in vgchange before background polling.
   Ensure _node_send_message always uses clean status of thin pool.
   Fix lvmlockd to use pool lock when accessing _tmeta volume.
   Report expected sanlock_convert errors only when retries fail.
index ae97a4a1defbcd4c9ba832a9d4c9f2bfc61bb925..48e64c50e001cbf6d497bf777cafaced8828dbe5 100644 (file)
@@ -178,7 +178,7 @@ int vgchange_background_polling(struct cmd_context *cmd, struct volume_group *vg
 {
        int polled;
 
-       if (lvs_in_vg_activated(vg) && background_polling()) {
+       if (background_polling()) {
                polled = _poll_lvs_in_vg(cmd, vg);
                if (polled)
                        log_print_unless_silent("Background polling started for %d logical volume(s) "
This page took 0.044442 seconds and 5 git commands to generate.