|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XEN][RFC PATCH v4 11/16] common/device_tree: Add rwlock for dt_host
Hi Vikram, On 07/12/2022 06:18, Vikram Garhwal wrote: Dynamic programming ops will modify the dt_host and there might be other function which are browsing the dt_host at the same time. To avoid the race conditions, adding rwlock for browsing the dt_host. Looking at the user below, it is not entirely clear what the lock is actually protecting. For instance...
... I was expecting the read lock to also protect the value returned from being freed. But this is not the case. Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |