Subject: CVS commit: syssrc
To: None <source-changes@netbsd.org>
From: Bill Sommerfeld <sommerfeld@netbsd.org>
List: source-changes
Date: 07/31/1999 17:00:58
Module Name:	syssrc
Committed By:	sommerfeld
Date:		Sun Aug  1 00:00:58 UTC 1999

Modified Files:
	syssrc/sys/miscfs/union: union.h union_vnops.c

Log Message:
Fix PR5146: reboot with working directory in unionfs causes
"panic: lockmgr: using decommisioned lock"
(only if DIAGNOSTIC)

The problem turned out to be due to the way LK_DRAIN was (not) handled
in union_lock; it just got passed through to the lock on the upper
vnode (which got marked as decommissioned, instead of that happening
to the union vnode.  When the upper vnode was next locked (typically
when it was released), it went kaboom.


To generate a diff of this commit:
cvs rdiff -r1.10 -r1.11 syssrc/sys/miscfs/union/union.h
cvs rdiff -r1.44 -r1.45 syssrc/sys/miscfs/union/union_vnops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.