On Sat, Sep 13, 2025 at 07:14:13PM +0300, Laurent Pinchart wrote: > On Sat, Sep 13, 2025 at 11:55:45PM +0800, Tzung-Bi Shih wrote: > > - Subsystems (like cdev) should build on this API to provide an easier > > interface for their drivers to manage revocable resources. > > > > I'll create a PoC based on this. > > I'm looking forward to that. Please let me know if there's anything you > would like to discuss. I didn't dive deep in technical details in this > thread, and I don't expect anyone to guess what I have in mind if I > failed to express it :-) I'm very confident the cdev race condition can > be fixed in a neat way, so let's do that.
Even though I think this isn't what you are looking for originally, please take a look on the PoC attempt (5th - 7th patches) in [1]. Unlike [2], the PoC allows fops to be exuected and defers to the driver to decide what to do if the resource is unavailable. [1] https://lore.kernel.org/chrome-platform/[email protected] [2] https://lore.kernel.org/all/161117153776.2853729.6944617921517514510.st...@dwillia2-desk3.amr.corp.intel.com/
