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

Johannes Berg johannes at sipsolutions.net
Thu Jul 4 02:56:27 PDT 2024


On Thu, 2024-07-04 at 11:55 +0200, 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".

Or just split into tx and rx stats, and use the correct lock separately?

johannes



More information about the linux-um mailing list