mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
device_mapper: relocate code for sending messages
To be able to send messages for recently resumed devices, move code into inner loop.
This commit is contained in:
parent
d56e400d44
commit
c1a6b10d09
@ -1953,10 +1953,6 @@ int dm_tree_activate_children(struct dm_tree_node *dnode,
|
|||||||
r = 0;
|
r = 0;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (awaiting_peer_rename)
|
|
||||||
priority--; /* redo priority level */
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* FIXME: Implement delayed error reporting
|
* FIXME: Implement delayed error reporting
|
||||||
@ -1965,9 +1961,13 @@ 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 > 1) &&
|
if (r && (child->props.send_messages > 1) &&
|
||||||
!(r = _node_send_messages(dnode, uuid_prefix, uuid_prefix_len, 1)))
|
!(r = _node_send_messages(child, uuid_prefix, uuid_prefix_len, 1)))
|
||||||
stack;
|
stack;
|
||||||
|
}
|
||||||
|
if (awaiting_peer_rename)
|
||||||
|
priority--; /* redo priority level */
|
||||||
|
}
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user