vn - remove vn_softc from list on detach command
authorAlex Hornung <ahornung@gmail.com>
Sat, 26 Jun 2010 16:09:57 +0000 (17:09 +0100)
committerAlex Hornung <ahornung@gmail.com>
Sun, 27 Jun 2010 01:05:25 +0000 (02:05 +0100)
commitf6dbbf775f2d163a4a1bea1a68425ffe98961174
tree3b921f5c003765cf4ffb5a6dd3c741c1dc7d378f
parent5844bad4362a5003b37475c888ad60161aad744d
vn - remove vn_softc from list on detach command

* Remove the vn_softc out of the vn list when a detach command is
  issued, additionally to calling disk_destroy().

* This was causing a panic when a reboot was issued after detaching a vn
  device, as disk_destroy was effectively called twice on the same dp.
sys/dev/disk/vn/vn.c