opnsense-src/sys/dev
Alfred Perlstein cc8317f2b0 Fix a deadlock in detach/shutdown.
The problem was that I was acquiring the driver sx lock and then waiting
for a taskqueue to drain, however the taskqueue itself would try to
acquire the lock as well leading to a deadlock.

To fix the problem roll my own exclusive lock that allows for lock
cancellation.  This is a normal exclusive lock, however if someone
marks it as "dead" then all waiters who request an error return will
get back an error instead of continuing to wait for the lock.

In this particular case, the shutdown and detach functions kill the
lock while the async task thread tries to acquire the lock but will
abort if the lock returns an error.

The other option was to drop the driver lock mid-detach and mid-shutdown,
mid-detach was a ok, however mid-shutdown was not.

While I'm here, fix a bug in what appears to be the mii link status
word in the softc going out to lunch.  Explicitly set the status
word to 1 after initializing the mii.  This would result in an interface
that would never respond to "if_start" requests as the mii interface
would always look down.
2006-12-23 17:18:18 +00:00
..
aac On amd64 platform, use linux32 headers so 32-bit Linux applications 2006-12-20 17:10:53 +00:00
acpi_support
acpica ACPIIO_BATT_GET_UNITS would always return ENXIO. However, it should never 2006-12-22 00:57:26 +00:00
adlink
advansys
agp
aha
ahb
aic
aic7xxx
amd
amr
an
ar
arcmsr
arl
asr
ata Fix a typo in ata-queue.c 2006-12-23 12:40:54 +00:00
ath
atkbdc Spell "Kensington Thinking Mouse" correctly. 2006-12-18 18:48:28 +00:00
auxio
awi
bce
bfe
bge Re-enable MSI support for those chips on which it is believed to work 2006-12-22 02:59:58 +00:00
bktr
buslogic
cardbus
ce
ciss
cm
cnw
cp
cpufreq
cs
ct
ctau
cx
cy
dc Fix a bug originally introduced in rev. 1.74; don't reloaded the 2006-12-20 01:49:56 +00:00
dcons
de
digi
dpt
drm
ed
eisa
em
en
ep
esp
ex
exca
fatm
fb
fdc
fe
firewire
flash
fxp
gem
gfb
harp
hatm
hfa
hifn
hme
hptmv
hwpmc
ic
ichsmb
ichwd Align the interfaces for the various watchdogs and make the interface 2006-12-15 21:44:49 +00:00
ida
idt
ie
ieee488
if_ndis
iicbus
iir
io
ipmi Align the interfaces for the various watchdogs and make the interface 2006-12-15 21:44:49 +00:00
ips
ipw
isp Restore revision 1.126 that got accidentally nuked. 2006-12-18 23:53:39 +00:00
ispfw
iwi
ixgb
joy
kbd
kbdmux
le
led
lge
lmc
mc146818
mca
mcd
md
mem
mfi
mii Use BMSR for link status in one more place and clean up more. 2006-12-20 00:34:12 +00:00
mk48txx Align the interfaces for the various watchdogs and make the interface 2006-12-15 21:44:49 +00:00
mlx
mly
mmc
mpt Make some slight reorganization (bringing back in some 2006-12-16 07:39:55 +00:00
mse
msk
mxge
my
ncv
nfe
nge
nmdm
nsp
null
nve
ofw
patm
pbio
pccard
pccbb
pcf
pci
pdq
powermac_nvram
ppbus
ppc
pst
puc
ral Remove dependency on deprecated if_watchdog ABI. 2006-12-19 17:37:41 +00:00
random
ray
rc
re - Use the re_tick() callout instead of if_slowtimo() for driving 2006-12-20 02:13:59 +00:00
rndtest
rp
rr232x
safe
sbni
sbsh
scc
scd
sf
si
sio
sk
smbus
sn
snc
snp
sound Fix distorted sound on Intel Desktop Board D101GGC (ATI SB450/ALC861). 2006-12-22 11:55:59 +00:00
speaker
spibus
sr
stg
stge
streams
sym
syscons
tdfx
ti
trm
twa
twe
tx
txp
uart
ubsec
usb Fix a deadlock in detach/shutdown. 2006-12-23 17:18:18 +00:00
utopia
vge
vkbd
vr
vx
watchdog Align the interfaces for the various watchdogs and make the interface 2006-12-15 21:44:49 +00:00
wds
wi
wl
xe
zs