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:
parent
4a4ea47f70
commit
297d5915c3
@ -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.
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user