[dpdk-dev] [PATCH] test/service: fix race condition on stopping lcore

David Marchand david.marchand at redhat.com
Fri Oct 16 13:54:58 CEST 2020


On Fri, Oct 16, 2020 at 11:18 AM Van Haaren, Harry
<harry.van.haaren at intel.com> wrote:
> > Subject: [PATCH] test/service: fix race condition on stopping lcore
> >
> > There is a potential race condition in 'service_attr_get' which will cause
> > test failures since the service core thread is still running while the
> > values are being retrieved/reset.
> >
> > This patch fixes the race condition by waiting for the service core thread
> > to stop before continuing with the unit test checks.

Fixes: 4d55194d76a4 ("service: add attribute get function")

> > Signed-off-by: Kevin Laatz <kevin.laatz at intel.com>
> Acked-by: Harry van Haaren <harry.van.haaren at intel.com>

Thanks Kevin, Harry, applied.


-- 
David Marchand



More information about the dev mailing list