HEADSUP: disk_*(9) API change mega-patch

Lukas Ertl l.ertl at univie.ac.at
Sat Feb 7 09:14:01 PST 2004


On Thu, 5 Feb 2004, Poul-Henning Kamp wrote:

> In message <20040205114149.I618 at korben.in.tern>, Lukas Ertl writes:
> >On Thu, 5 Feb 2004, Poul-Henning Kamp wrote:
> >
> >> This is a mostly mechanical and largely untested patch, so please test
> >> carefully if you have the necessary hardware.
> >>
> >> Kernel patch:
> >> 	http://phk.freebsd.dk/patch/disk.patch
> >> [...]
> >> This patch changes the disk_*(9) API so that ownership of the "struct
> >> disk" is moved from the device drivers to GEOM.  This removes a lot
> >> of trouble from the disk_destroy(9) handling, which should be robust
> >> with this patch.
> >
> >Will this be a solution for the deadlock we were discussing lately on
> >geom@?
>
> I belive so, reports confirming or denying this are most welcome.

OK, I now had time to actually try the patch, and removing disks now works
correctly, no deadlock anymore.

One thing I noticed, though, is that even after removal of the drive
there's still a /dev/da1 and /dev/da1s1 entry.

lg,
le

-- 
Lukas Ertl                             eMail: l.ertl at univie.ac.at
UNIX Systemadministrator               Tel.:  (+43 1) 4277-14073
Vienna University Computer Center      Fax.:  (+43 1) 4277-9140
University of Vienna                   http://mailbox.univie.ac.at/~le/


More information about the freebsd-current mailing list