Re: [PATCH] eal: fix memory initialization deadlock

2023-08-30 Thread Dmitry Kozlyuk
2023-08-30 13:33 (UTC+0300), Artemy Kovalyov: > Following these changes, the RW-lock no longer supports > recursion, implying that a single thread shouldn't obtain a read lock if > it already possesses one. The problem arises during initialization: the > rte_eal_init() function acquires the memory_

[PATCH] eal: fix memory initialization deadlock

2023-08-30 Thread Artemy Kovalyov
The issue arose due to the change in the DPDK read-write lock implementation. That change added a new flag, RTE_RWLOCK_WAIT, designed to prevent new read locks while a write lock is in the queue. However, this change has led to a scenario where a recursive read lock, where a lock is acquired twice