1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-18 10:04:20 +03:00

vgchange: drop extra counting

As the loop for background polling _poll_lvs_in_vg checks for active LVs,
avoid doing unnecessary extra check before.
This commit is contained in:
Zdenek Kabelac 2017-12-08 13:17:34 +01:00
parent 14b1e5270d
commit 4e8af1d3aa
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.177 - 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. Ensure _node_send_message always uses clean status of thin pool.
Fix lvmlockd to use pool lock when accessing _tmeta volume. Fix lvmlockd to use pool lock when accessing _tmeta volume.
Report expected sanlock_convert errors only when retries fail. Report expected sanlock_convert errors only when retries fail.

View File

@ -178,7 +178,7 @@ int vgchange_background_polling(struct cmd_context *cmd, struct volume_group *vg
{ {
int polled; int polled;
if (lvs_in_vg_activated(vg) && background_polling()) { if (background_polling()) {
polled = _poll_lvs_in_vg(cmd, vg); polled = _poll_lvs_in_vg(cmd, vg);
if (polled) if (polled)
log_print_unless_silent("Background polling started for %d logical volume(s) " log_print_unless_silent("Background polling started for %d logical volume(s) "