mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [BUG][2.5]deadlock on cpci hot insert
@ 2003-01-16  1:11 Rusty Lynch
  2003-01-16  5:33 ` Scott Murray
  0 siblings, 1 reply; 7+ messages in thread
From: Rusty Lynch @ 2003-01-16  1:11 UTC (permalink / raw)
  To: scottm; +Cc: linux-kernel, pcihpd-discuss

When I hot insert a cpci peripheral board into a ZT5084 chassis
with a ZT5550 system master board, my ZT5550 locks up.  I managed
to isolate the problem to a deadlock with list_lock

* hot insert * 
      ||
      \/
cpci_hotplug_core.c:check_slots() which does a spin_lock(&list_lock)
      ||
      \/
* inserted card is found *
      ||
      \/
cpci_hotplug_pci.c:cpci_configure_slot()
      ||
      \/
pci_hotplug_util.c:pci_visit_dev()
      ||
      || (fn->visit_pci_dev)
      \/
cpci_hotplug_pci.c:configure_visit_pci_dev()
      ||
      \/
cpci_hotplug_core.c:cpci_find_slot() which also does a spin_lock(&list_lock)
      ||
      \/
* deadlock *


I'm not sure which is the correct way to fix this.  Maybe a
cpci_unlocked_find_slot()? hmm... pci_visit_dev is exported,
so anybody could call it.

    --rustyl

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-01-18  7:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-16  1:11 [BUG][2.5]deadlock on cpci hot insert Rusty Lynch
2003-01-16  5:33 ` Scott Murray
2003-01-16  7:04   ` Rusty Lynch
2003-01-16 20:42     ` [Pcihpd-discuss] " Rusty Lynch
2003-01-17  5:32       ` Scott Murray
2003-01-18  2:04         ` Rusty Lynch
2003-01-18  7:10           ` Scott Murray

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®