[dpdk-dev] [dpdk-stable] [PATCH] ipc: fix locking while sending messages

Thomas Monjalon thomas at monjalon.net
Fri Jun 29 02:02:38 CEST 2018


27/06/2018 14:25, Zhang, Qi Z:
> From: Burakov, Anatoly
> > 
> > Previously, we were putting an exclusive lock to prevent secondary processes
> > spinning up while we are sending our messages. However, using exclusive
> > locks had an effect of disallowing multiple simultaenous unrelated
> > messages/requests being sent, which was not the intention behind locking.
> > 
> > Fix it to put a shared lock on the directory. That way, we still prevent
> > secondary process initializations while sending data over IPC, but allow
> > multiple unrelated transmissions to proceed.
> > 
> > Fixes: 89f1fe7e6d95 ("eal: lock IPC directory on init and send")
> > Cc: stable at dpdk.org
> > 
> > Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> 
> Tested-by: Qi Zhang <qi.z.zhang at intel.com>
> 
> Thanks for the quick fix!
> Qi

Applied, thanks





More information about the dev mailing list