Re: [PATCH v2] regmap: debugfs: Fix name collision without atomic operations
From: Mark Brown
Date: Tue Mar 04 2025 - 11:57:30 EST
On Tue, Mar 04, 2025 at 05:23:02PM +0100, Greg KH wrote:
> On Tue, Mar 04, 2025 at 10:24:52PM +0800, Zxyan Zhu wrote:
> > name = map->debugfs_name;
> > - dummy_index++;
> Shouldn't you just use an idr here if there is a race condition?
> There's a lock built into it that should solve all of these issues.
Yes, that's probably the easiest thing.
Attachment:
signature.asc
Description: PGP signature