Re: [PATCH v5 04/18] iommu: Convert gdev->blocked from bool to enum gdev_blocked
Jason Gunthorpe <[email protected]>
| Newsgroups | org.kernel.vger.linux-acpi,dev.linux.lists.iommu,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kernel,org.kernel.vger.linux-pci |
|---|---|
| Message-ID | <178786269178.3808739.3498566138050995773.b4-review@b4> |
On Thu, 02 Jul 2026 21:06:29 -0700, Nicolin Chen <[email protected]> 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 <[email protected]> -- Jason