lkml.org 
[lkml]   [2003]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[BUG][2.5]deadlock on cpci hot insert
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:32    [W:0.043 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site