Re: [PATCH v6 01/18] PCI/P2PDMA: Document pdev->p2pdma lifetime rules

From: Logan Gunthorpe

Date: Fri Sep 18 2026 - 14:38:52 EST




On 2026-09-14 05:22, Leon Romanovsky wrote:
> From: Leon Romanovsky <leonro@xxxxxxxxxx>
>
> pdev->p2pdma is normally accessed through provider-owned references, but
> pci_p2pmem_find_many() and the p2pmem sysfs attributes may race with driver
> unbind.
>
> Document initialization, teardown, and how the release grace period
> protects both the P2PDMA state and its optional allocation pool.
>
> Cc: Alex Williamson <alex@xxxxxxxxxxx>
> Cc: Matt Evans <matt@xxxxxxxxxx>
> Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxx>
Reads correct to me.

Reviewed-by: Logan Gunthorpe <logang@xxxxxxxxxxxx>