[PATCH] eal/linux: prevent deadlocks on rte init and cleanup

Jonathan Erb jonathan.erb at threatblockr.com
Mon Oct 2 16:34:55 CEST 2023


David,

Thanks for the follow-up. The proposed patch below from Artemy will work 
for me.

Jonathan


On 9/29/23 10:32, David Marchand wrote:
> Hello Jonathan,
>
> On Thu, Jul 20, 2023 at 7:19 AM Jonathan Erb
> <jonathan.erb at threatblockr.com>  wrote:
>> Resolves a deadlock that can occur when multiple secondary
>> processes are starting and stopping. A deadlock can occur because
>> eal_memalloc_init() is taking a second unnecessary read lock.
>> If another DPDK process that is terminating enters rte_eal_memory_detach()
>> and acquires a write lock wait state before the starting process can
>> acquire it's second read lock then no process will be able to proceed.
>>
>> Cc:stable at dpdk.org
>>
>> Signed-off-by: Jonathan Erb<jonathan.erb at threatblockr.com>
> Thanks for the report and fix and sorry for the late reply.
>
> Artemy came with a similar report and a more complete fix.
> Could you confirm it works for you?
>
> https://patchwork.dpdk.org/project/dpdk/list/?series=29463&state=%2A&archive=both
>
>
> Thanks,
>
-- 
Jonathan Erb
Software Engineer
*Phone:* 1.855.765.4925
jonathan.erb at threatblockr.com <mailto:name at swishdata.com>
threatblockr.com <https://threatblockr.com>
Threat Blockr Logo <https://threatblockr.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/stable/attachments/20231002/346b16d0/attachment.htm>


More information about the stable mailing list