[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180901.173925.56106529065602504.davem@davemloft.net>
Date: Sat, 01 Sep 2018 17:39:25 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: stephen@...workplumber.org
Cc: kys@...rosoft.com, haiyangz@...rosoft.com, sthemmin@...rosoft.com,
devel@...uxdriverproject.org, netdev@...r.kernel.org,
linux-pci@...r.kernel.org
Subject: Re: [PATCH net-next 1/2] PCI: hv: support reporting serial number
as slot information
From: Stephen Hemminger <stephen@...workplumber.org>
Date: Wed, 29 Aug 2018 09:24:51 -0700
> + spin_lock_irqsave(&hbus->device_list_lock, flags);
> + list_for_each_entry(hpdev, &hbus->children, list_entry) {
> + if (hpdev->pci_slot)
> + continue;
> +
> + slot_nr = PCI_SLOT(wslot_to_devfn(hpdev->desc.win_slot.slot));
> + snprintf(name, SLOT_NAME_SIZE, "%u", hpdev->desc.ser);
> + hpdev->pci_slot = pci_create_slot(hbus->pci_bus, slot_nr,
> + name, NULL);
pci_create_slot() takes a mutex, therefore you can't hold a spinlock or
disable interrupts here.
Powered by blists - more mailing lists