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

Christoph Hellwig hch at lst.de
Mon May 3 19:25:48 BST 2021


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.



More information about the Linux-nvme mailing list