[dpdk-stable] [PATCH v3 1/6] service: fix race condition for MT unsafe service

Van Haaren, Harry harry.van.haaren at intel.com
Tue May 5 16:48:22 CEST 2020


> -----Original Message-----
> From: Honnappa Nagarahalli <honnappa.nagarahalli at arm.com>
> Sent: Saturday, May 2, 2020 1:03 AM
> To: dev at dpdk.org; phil.yang at arm.com; Van Haaren, Harry
> <harry.van.haaren at intel.com>
> Cc: thomas at monjalon.net; david.marchand at redhat.com; Ananyev, Konstantin
> <konstantin.ananyev at intel.com>; jerinj at marvell.com;
> hemant.agrawal at nxp.com; Eads, Gage <gage.eads at intel.com>; Richardson,
> Bruce <bruce.richardson at intel.com>; honnappa.nagarahalli at arm.com;
> nd at arm.com; stable at dpdk.org
> Subject: [PATCH v3 1/6] service: fix race condition for MT unsafe service
> 
> The MT unsafe service might get configured to run on another core
> while the service is running currently. This might result in the
> MT unsafe service running on multiple cores simultaneously. Use
> 'execute_lock' always when the service is MT unsafe.
> 
> If the service is known to be mmapped on a single lcore,

mmapped is a typo? Just mapped.

> setting the service capability to MT safe will avoid taking
> the lock and improve the performance.
>
> Fixes: e9139a32f6e8 ("service: add function to run on app lcore")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Honnappa Nagarahalli <honnappa.nagarahalli at arm.com>
> Reviewed-by: Phil Yang <phil.yang at arm.com>

Acked-by: Harry van Haaren <harry.van.haaren at intel.com>

<snip diff>


More information about the stable mailing list