[PATCH] nscd: bump GC cycle during cache pruning (bug 26130)
Carlos O'Donell
carlos@redhat.com
Mon Jun 29 14:14:35 GMT 2020
On 6/29/20 10:09 AM, Andreas Schwab wrote:
> On Jun 29 2020, Florian Weimer via Libc-alpha wrote:
>
>> * Andreas Schwab:
>>
>>> On Jun 29 2020, Florian Weimer wrote:
>>>
>>>> I think this needs barriers after and before the increments.
>>>
>>> Why doesn't gc need those barriers?
>>
>> I think it needs them as well. I thought we had them there. 8-(
>
> Should they use atomic_increment?
There are many concurrency problems with the cache, and we do see
these issues with downstream customers. Torvald reviewed this at
one point and produced a patch that I've attached to bug 25888.
Our latest attempt to fix this is here:
https://sourceware.org/bugzilla/show_bug.cgi?id=25888
https://sourceware.org/bugzilla/attachment.cgi?id=12493
--
Cheers,
Carlos.
More information about the Libc-alpha
mailing list