[PATCH] um: vector: Replace locks guarding queue depth with atomics

Anton Ivanov anton.ivanov at cambridgegreys.com
Thu Jul 4 03:54:14 PDT 2024



On 04/07/2024 10:55, Johannes Berg wrote:
> On Thu, 2024-07-04 at 10:52 +0100, Anton Ivanov wrote:
>>>
>>> There is an extra issue there - stats. I need to double-check the locking when
>>> they are being fetched.
>>
>> Same story - these need atomics. Otherwise we can potentially get the same ABBA
>> lock issue when they are being fetched.
>>
> 
> Email overlap ...
> 
> I don't think so? If no other path now uses _both_ locks, the stats path
> can, it'll just be "AB" never "BA".

Good point.

> 
> johannes
> 
> 

-- 
Anton R. Ivanov
Cambridgegreys Limited. Registered in England. Company Number 10273661
https://www.cambridgegreys.com/



More information about the linux-um mailing list