minor GEOM disk API change coming
Andrey V. Elsukov
ae at FreeBSD.org
Thu Jun 21 15:53:28 UTC 2012
On 21.06.2012 08:29, Kenneth D. Merry wrote:
> Fix a bug which causes a panic in daopen(). The panic is caused by
> a da(4) instance going away while GEOM is still probing it.
>
> In this case, the GEOM disk class instance has been created by
> disk_create(), and the taste of the disk is queued in the GEOM
> event queue.
>
> While that event is queued, the da(4) instance goes away. When the
> open call comes into the da(4) driver, it dereferences the freed
> (but non-NULL) peripheral pointer provided by GEOM, which results
> in a panic.
I think this situation is very specific for the GEOM_DISK class, and
this callback will be less useful for other classes.
Does g_cancel_event() cannot help you prevent tasting?
--
WBR, Andrey V. Elsukov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20120621/09a93819/signature.pgp
More information about the freebsd-current
mailing list