mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +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:
parent
14b1e5270d
commit
4e8af1d3aa
@ -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.
|
||||
|
@ -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) "
|
||||
|
Loading…
Reference in New Issue
Block a user