Re: [PATCH] PCI: fix recusive device locking

From: Dan Williams
Date: Fri Jun 28 2024 - 15:49:10 EST


[ add linux-pci ]

Keith Busch wrote:
> From: Keith Busch <kbusch@xxxxxxxxxx>
>
> If one of the bus' devices has subordinates, the recursive call locks
> itself, so no need to lock the device before the recusion or it will
> surely deadlock.
>
> Fixes: dbc5b5c0d268f87 ("PCI: Add missing bridge lock to pci_bus_lock()"
> Cc: Dan Williams <dan.j.williams@xxxxxxxxx>
> Signed-off-by: Keith Busch <kbusch@xxxxxxxxxx>

Looks good, thanks for the fixup Keith!

Reviewed-by: Dan Williams <dan.j.williams@xxxxxxxxx>