[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS: cvs.openbsd.org: src

Module name:	src
Changes by:	art_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org	2001/12/04 08:05:56

Modified files:
	sys/ufs/ffs    : ffs_softdep.c 

Log message:
FREE_LOCK_INTERLOCKED drops the lock owner without changing lock "state".
ACQUIRE_LOCK_INTERLOCKED set the owner back without validating that the state
is ok. This could lead to changed states and FREE_LOCK could set spl to
any random value.

Try to preserve the state of the lock.

XXX - all this locking in the code is insane. all this debugging code
breaks stuff.

Visit your host, monkey.org