[ovs-dev] [PATCH v2] latch-unix: Decrease the stack usage in latch

Ben Pfaff blp at ovn.org
Thu Jul 15 18:42:10 UTC 2021


On Thu, Jul 15, 2021 at 04:28:12PM +0100, anton.ivanov at cambridgegreys.com wrote:
> From: Anton Ivanov <anton.ivanov at cambridgegreys.com>
> 
> 1. Make latch behave as described and documented - clear all
> outstanding latch writes when invoking latch_poll().
> 2. Decrease the size of the latch buffer. Less stack usage,
> less cache thrashing.
> 
> Signed-off-by: Anton Ivanov <anton.ivanov at cambridgegreys.com>

Applied, thanks!  I dropped the following hunk:

> --- a/lib/latch-unix.c
> +++ b/lib/latch-unix.c
> @@ -23,6 +23,7 @@
>  #include "openvswitch/poll-loop.h"
>  #include "socket-util.h"
>  
> +
>  /* Initializes 'latch' as initially unset. */
>  void
>  latch_init(struct latch *latch)


More information about the dev mailing list