Re: [PATCH] Fix scheduler pause-detection timeout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Michael,
nice patch. Ack + I've already pushed into master.

Thanks again for patch,
  Honza

Michael Chapman napsal(a):
> qb_loop_timer_add expects the timeout to be in nanoseconds, but we were
> passing the value in milliseconds. Scale the timeout appropriately.
> 
> Signed-off-by: Michael Chapman <mike@xxxxxxxxxxxxxxxxx>
> ---
>  exec/main.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/exec/main.c b/exec/main.c
> index 65b28c2..6c69ee5 100644
> --- a/exec/main.c
> +++ b/exec/main.c
> @@ -824,7 +824,7 @@ static void timer_function_scheduler_timeout (void *data)
>  	timeout_data->max_tv_diff = timeout_data->totem_config->token_timeout * QB_TIME_NS_IN_MSEC * 0.8;
>  	qb_loop_timer_add (corosync_poll_handle,
>  		QB_LOOP_MED,
> -		timeout_data->totem_config->token_timeout / 3,
> +		timeout_data->totem_config->token_timeout * QB_TIME_NS_IN_MSEC / 3,
>  		timeout_data,
>  		timer_function_scheduler_timeout,
>  		&timeout_data->handle);
> 

_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss




[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux