Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CA-223652: Add delay to reduce number of syslog messages #229

Merged
merged 1 commit into from Jan 25, 2018

Conversation

MarkSymsCtx
Copy link
Contributor

@MarkSymsCtx MarkSymsCtx commented Sep 28, 2016

Add delay in between attempts to pause the same vbd so that the syslog doesn't get hard spammed for no benefit

Signed-off-by: Mark Syms mark.syms@citrix.com

@MarkSymsCtx
Copy link
Contributor Author

The formatting of this function is a bit all over the place, could reformat the function as part of this change, maybe as a different commit in the set?

@@ -926,6 +926,7 @@ static int
tapdisk_control_pause_vbd(struct tapdisk_ctl_conn *conn,
tapdisk_message_t *request, tapdisk_message_t * const response)
{
struct timeval now, next = { 0, 0 }, interval = { 0, 10000 };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we do this 100ms ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it currently seems happy at 10ms but it's easy enough to change

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, looks good to me than

@stefanopanella
Copy link
Contributor

stefanopanella commented Sep 28, 2016

Sorry, can you please just split the commit message and the explanation?

@MarkSymsCtx MarkSymsCtx changed the title CA-223652: Add delay in between attempts to pause the same vbd so tha… CA-223652: Add delay to reduce number of syslog messages Sep 28, 2016
@stefanopanella
Copy link
Contributor

Reviewed-by: Stefano Panella

Add delay in between attempts to pause the same vbd so that the syslog doesn't get hard spammed for no benefit

Signed-off-by: Mark Syms <mark.syms@citrix.com>
Reviewed-by: Stefano Panella <stefano.panella@citrix.com>
@MarkSymsCtx MarkSymsCtx merged commit 84c315d into xapi-project:master Jan 25, 2018
@MarkSymsCtx MarkSymsCtx deleted the CA-223652 branch January 26, 2018 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants