Re: [PATCH 02/16] PCI/P2PDMA: Avoid pci_get_slot() which sleeps

Christoph Hellwig
2021-05-03T18:25:55Z

On Mon, May 03, 2021 at 10:08:34AM -0600, Logan Gunthorpe wrote:
> Per above, I think the reference count is unnecessary. But I could wrap
> it in a static function for clarity. (There's no reason to export this
> function).

A well documented helper function would really help to improve the
code for the casual reader I think.