[PATCH] service: debug and fix lingering might_be_active() result

Thomas Monjalon thomas at monjalon.net
Tue Jul 5 16:27:42 CEST 2022


05/07/2022 15:32, Harry van Haaren:
> This commit fixes an issue where calling rte_service_lcore_stop()
> would result in a service's "active on lcore" status becoming stale.
> 
> The stale status would result in rte_service_may_be_active() always
> returning "1", indiciating that the service is not certainly stopped.
> 
> This is fixed by ensuring the "active on lcore" status of each service
> is set to 0 when an lcore is stopped.
> 
> Fixes: e30dd31847d2 ("service: add mechanism for quiescing")
> Fixes: 8929de043eb4 ("service: retrieve lcore active state")
> 
> Reported-by: S. V. Naga Harish <s.v.naga.harish.k at intel.com>
> Signed-off-by: Harry van Haaren <harry.van.haaren at intel.com>

Applied, thanks.





More information about the dev mailing list