1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

libdm: avoid checking status on activation

Variable props.send_messages has 3 states and was not used properly
here.  Activation in this moment does not need to verify thin-pool status
as that has been already checked on preload.
So only if there are some real messages (value 2) call function
for sending them.
This commit is contained in:
Zdenek Kabelac 2017-12-07 17:52:01 +01:00
parent 4a4ea47f70
commit 297d5915c3
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 1.02.146 - Version 1.02.146 -
==================================== ====================================
Activation tree of thin pool skips duplicated check of pool status.
Remove code supporting replicator target. Remove code supporting replicator target.
Do not ignore failure of _info_by_dev(). Do not ignore failure of _info_by_dev().
Propagate delayed resume for pvmove subvolumes. Propagate delayed resume for pvmove subvolumes.

View File

@ -1920,7 +1920,7 @@ int dm_tree_activate_children(struct dm_tree_node *dnode,
* resume should continue further, just whole command * resume should continue further, just whole command
* has to report failure. * has to report failure.
*/ */
if (r && dnode->props.send_messages && if (r && (dnode->props.send_messages > 1) &&
!(r = _node_send_messages(dnode, uuid_prefix, uuid_prefix_len, 1))) !(r = _node_send_messages(dnode, uuid_prefix, uuid_prefix_len, 1)))
stack; stack;