HomeFreeBSD

Force a commit on kern_mutex.c to explain reason for last commit but while
rS82304Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Force a commit on kern_mutex.c to explain reason for last commit but while
I'm at it also add a comment in mtx_validate() explaining the purpose
of the last change.

Basically, this fixes booting kernels compiled with MUTEX_DEBUG. What used
to happen is before we setidt from init386() [still using BTX idt], we
called mtx_init() on several mutex locks, notably Giant and some others.
This is a problem for MUTEX_DEBUG because it enables mtx_validate() which
calls kernacc(), some of which in turn requires Giant.
Fix by calling kernacc() from mtx_validate() only if (!cold).

Details

Provenance
bmilekicAuthored on
Parents
rS82303: Cut the size of the (really over zealous) swap-meta allocation in half to
Branches
Unknown
Tags
Unknown

Event Timeline