Re: [PATCH v7 2/3] hwspinlock: add list of locks to debugfs

From: Wolfram Sang

Date: Thu Sep 17 2026 - 05:43:53 EST



> > > Do you mean xa_find_after() may loop forever?
> >
> > Ehrm, it's been a while, I need to look this up. Which means the comment
> > is not explanationary enough :/
>
> Yeah, I'd expect xa_find_after() to do exactly what you want...

So, the reason is that xa_find_after() only upadtes ppos if something is
found. If nothing is found, it will in deed loop forever staying on the
same ppos. Will update the comment.

> > I get the idea, but haven't found a nice word yet. "Busy" could be
> > interpreted as "lock taken". I'll think some more about it.
>
> "used", "bound", "unavailable", "occupied", "reserved", "in_use", "inuse", ...

After sleeping over it, I will simply go with "free/used".

Attachment: signature.asc
Description: PGP signature