Re: [PATCH 5/7] rust: drm: wrap fops open with RegistrationGuard

From: Alice Ryhl

Date: Fri Oct 16 2026 - 09:56:55 EST


On Sat, Aug 15, 2026 at 01:09:03AM +0200, Danilo Krummrich wrote:
> Add a Minor abstraction with RAII release and a fops_open() wrapper that
> holds a RegistrationGuard (drm_dev_enter / drm_dev_exit) across the
> entire drm_open() call.
>
> This guarantees that drm_dev_unplug() in Registration::drop() waits for
> the full open sequence to complete, so all files are visible in the
> filelist when iterating for cleanup.
>
> Signed-off-by: Danilo Krummrich <dakr@xxxxxxxxxx>

I would consider whether drm_open() should be changed directly here, but:

Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>