Re: [PATCH 3/8] char: misc: Introduce misc_sync_register()
From: Jason Gunthorpe
Date: Fri May 08 2026 - 07:54:57 EST
On Fri, May 08, 2026 at 09:38:38AM +0000, Tzung-Bi Shih wrote:
> I see this as the cost for synchronizing file operations with misc driver
> registration, as previously mentioned in [2], which I believe is necessary
> to prevent the race conditions. I'm open to discussing potential
> optimizations or alternative approaches if you have suggestions.
I think the past threads had many different ideas, I don't know why
you choose to present this with something that is clearly acceptable..
The drivers ops lookup needs to be O(1) on the system call path.
Everything else about this series is reasonable, but you need to pick
a better way to do this.
Jason