[PATCH v2] eal: fix memory initialization deadlock

Artemy Kovalyov artemyko at nvidia.com
Tue Sep 5 11:05:31 CEST 2023


> > +		/*  memory_hotplug_lock is taken in rte_eal_init(), so it's
> > +		 *  safe to call thread-unsafe version.
> > +		 */
>
> Nit: the lock is really taken in rte_eal_memory_init().
> Probably "The lock is held during initialization, so..."
> would more robust against code changes and differences between platforms.

It was previously located differently, but in the current version, it has been shifted to rte_eal_init(). It might be worth noting this to ensure that if there are further code changes in the future, the locking problem becomes more apparent. We had discussed this in the bug report.


More information about the stable mailing list