cvs commit: src/sys/fs/pseudofs pseudofs_vnops.c

Dag-ErlingSmørgrav des at des.no
Mon Aug 18 12:22:01 PDT 2003


John Baldwin <jhb at FreeBSD.org> writes:
>   Log:
>   The allproc lock is a sx lock, not a mutex, so fix the assertion.  This
>   asserts that the sx lock is held, but does not specify if the lock is held
>   shared or exclusive, thus either type of lock satisfies the assertion.

My bad - but why didn't I get a warning about the incorrect pointer
type?  And why did the code run fine with INVARIANT_SUPPORT and
INVARIANTS defined?  Just lucky?

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the cvs-src mailing list