[dpdk-stable] [PATCH v2] stack: fix reload head when pop fails

Thomas Monjalon thomas at monjalon.net
Mon Sep 27 17:47:08 CEST 2021


24/09/2021 10:57, Olivier Matz:
> Hello,
> 
> On Tue, Sep 21, 2021 at 06:17:24PM +0200, Julien Meunier wrote:
> > The previous commit 18effad9cfa7 ("stack: reload head when pop fails")
> > only changed C11 implementation, not generic implementation.
> > 
> > List head must be loaded right before continue (when failed to find the
> > new head). Without this, one thread might keep trying and failing to pop
> > items without ever loading the new correct head.
> > 
> > Fixes: 3340202f5954 ("stack: add lock-free implementation")
> > Cc: stable at dpdk.org
> > 
> > Signed-off-by: Julien Meunier <julien.meunier at nokia.com>
> 
> Acked-by: Olivier Matz <olivier.matz at 6wind.com>

Applied, thanks.




More information about the stable mailing list