[PATCH] MPSAFE/LOOKUP_SHARED cd9660

Jaakko Heinonen jh at saunalahti.fi
Thu Nov 20 23:56:11 PST 2008


On 2008-11-20, Paul B. Mahol wrote:
> Machine crashed during clean shutdown (with old kernel without this patch)
> after atapicd where kldloaded and after that used some time and tham
> kldunloaded.

There are several bugs related to unloading the atapicd module.

* g_wither_geom() race against module unload
* return value from g_modevent() is ignored
* detaching/unloading is allowed even if the device is in use

You could try these patches:

http://www.saunalahti.fi/~jh3/patches/atapi-cd-locking+tray-control.diff
http://www.saunalahti.fi/~jh3/patches/geom-unload-class-race.diff

-- 
Jaakko


More information about the freebsd-current mailing list