Re: [dpdk-dev] [PATCH] fbarray: fix attach deadlock

2019-03-29 Thread Gavin Hu (Arm Technology China)
> -Original Message- > From: dev On Behalf Of Darek Stojaczyk > Sent: Friday, March 29, 2019 1:10 PM > To: dev@dpdk.org > Cc: james.r.har...@intel.com; changpeng@intel.com; Darek Stojaczyk > ; anatoly.bura...@intel.com; > tho...@monjalon.net > Subject: [d

[dpdk-dev] [PATCH] fbarray: fix attach deadlock

2019-03-28 Thread Darek Stojaczyk
rte_fbarray_attach() currently locks its internal spinlock, but never releases it. Secondary processes won't even start if there is more than one fbarray to be attached to - the second rte_fbarray_attach() would be just stuck. Fix it by releasing the lock at the end of rte_fbarray_attach(). I beli