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
Conversation
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 }; |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
Sorry, can you please just split the commit message and the explanation? |
f731044
to
e7c612b
Compare
Reviewed-by: Stefano Panella |
e7c612b
to
3cbf316
Compare
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>
3cbf316
to
82bcec9
Compare
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