Skip to contentSkip to conversation

master - dmeventd: Add fixed timeout when unmonitoring.

PATCH Alasdair Kergon 1 participant 1 message Aug 23, 2016

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=2d65ce9711dace22cebb370b0d93fd7a98213bd8
Commit:        2d65ce9711dace22cebb370b0d93fd7a98213bd8
Parent:        db0e34535c82cfb73af19a7673de82881ad2468c
Author:        Alasdair G Kergon <[email protected]>
AuthorDate:    Tue Aug 23 16:09:18 2016 +0100
Committer:     Alasdair G Kergon <[email protected]>
CommitterDate: Tue Aug 23 16:09:18 2016 +0100

dmeventd: Add fixed timeout when unmonitoring.

---
 lib/activate/activate.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
lib/activate/activate.c +1 -1
index 22e3afa..f4d3a17 100644
@@ -1853,7 +1853,7 @@ int monitor_dev_for_events(struct cmd_context *cmd, const struct logical_volume
 			continue;
 
 		if (new_unmonitor) {
-			if (!target_register_events(cmd, dso, lv, 0, 0, 0)) {
+			if (!target_register_events(cmd, dso, lv, 0, 0, 10)) {
 				log_error("%s: segment unmonitoring failed.",
 					  display_lvname(lv));