Re: [PATCH v5 04/18] iommu: Convert gdev->blocked from bool to enum gdev_blocked
From: Jason Gunthorpe
Date: Thu Aug 27 2026 - 16:34:41 EST
On Thu, 02 Jul 2026 21:06:29 -0700, Nicolin Chen <nicolinc@xxxxxxxxxx> wrote:
> The gdev->blocked flag tracks whether a device is individually being held
> in the group->blocking_domain while group->domain is retained. Up to now,
> a PCI reset in flight is the only producer, so a bool suffices.
>
> Subsequent changes will add more reasons to keep a device blocked, e.g. a
> failed-reset case that must not auto-unblock, or a driver-side quarantine
> for a hardware fault. These reasons are cleared by different events, which
> a single bool cannot encode.
>
> [...]
Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx>
--
Jason