RE: [PATCH v2] hv_utils: drain the timesync packets on onchannelcallback
From: Michael Kelley
Date: Fri Aug 21 2020 - 11:45:45 EST
From: viremana@xxxxxxxxxxxxxxxxxxx Sent: Friday, August 21, 2020 8:29 AM
>
> There could be instances where a system stall prevents the timesync
> packaets to be consumed. And this might lead to more than one packet
> pending in the ring buffer. Current code empties one packet per callback
> and it might be a stale one. So drain all the packets from ring buffer
> on each callback.
>
> Signed-off-by: Vineeth Pillai <viremana@xxxxxxxxxxxxxxxxxxx>
> ---
>
> v2:
> - s/pr_warn/pr_warn_once/
>
> ---
> drivers/hv/hv_util.c | 19 ++++++++++++++++---
> 1 file changed, 16 insertions(+), 3 deletions(-)
Reviewed-by: Michael Kelley <mikelley@xxxxxxxxxxxxx>