diff options
author | Ondrej Kozina <okozina@redhat.com> | 2016-03-10 16:52:03 +0100 |
---|---|---|
committer | Ondrej Kozina <okozina@redhat.com> | 2016-03-10 16:55:24 +0100 |
commit | 0d6c6553bde10adbe3b471ff18ae21c22d29b501 (patch) | |
tree | e817b2da9e22d5cc0e864ada88fdce82cae7c85b | |
parent | 181325c108fcf3a5673a1dd30861957510412d80 (diff) | |
download | lvm2-0d6c6553bde10adbe3b471ff18ae21c22d29b501.tar.gz |
polldaemon: avoid idling for thin snaphot merge
with lvmpolld enabled ignore interval argument since
there's nothing to poll. Just wait for lvmpolld child to
finish.
-rw-r--r-- | tools/polldaemon.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/polldaemon.c b/tools/polldaemon.c index 3a6f1d6bc..b7f850aae 100644 --- a/tools/polldaemon.c +++ b/tools/polldaemon.c @@ -466,7 +466,8 @@ static int _lvmpoll_daemon(struct cmd_context *cmd, struct poll_operation_id *id struct processing_handle *handle = NULL; unsigned finished = 0; - if (parms->aborting) + /* just wait for these to finish, no progress data */ + if (parms->aborting || (parms->lv_type & THIN_VOLUME)) parms->interval = 0; if (id) { |