|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH 1/9] gnttab: defer allocation of maptrack frames table
Hi Jan, On 06/09/2021 14:29, Jan Beulich wrote: On 06.09.2021 15:13, Julien Grall wrote:On 26/08/2021 11:09, Jan Beulich wrote: I was thinking to have an unbound loop. This would be no better no worth than the current implementation because of the existing lock. As to the value to store by cmpxchg() - were you thinking of some "alloc in progress" marker? Yes. You obviously can't store the result of the allocation before actually doing the allocation, yet it is unnecessary allocations that you want to avoid (i.e. to achieve your goal the allocation would need to come after the cmpxchg()). A marker would further complicate the other code here, even if (maybe) just slightly ... Right, the code will be a bit more complicated (although it would not be that bad if moved in a separate function...) but I feel it is better than the multiple vzalloc(). Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |