From 287836faea1ff2f002f4c9ea357e87cb7f2b4cd6 Mon Sep 17 00:00:00 2001 From: eivind Date: Sat, 11 Dec 1999 16:13:02 +0000 Subject: Lock reporting and assertion changes. * lockstatus() and VOP_ISLOCKED() gets a new process argument and a new return value: LK_EXCLOTHER, when the lock is held exclusively by another process. * The ASSERT_VOP_(UN)LOCKED family is extended to use what this gives them * Extend the vnode_if.src format to allow more exact specification than locked/unlocked. This commit should not do any semantic changes unless you are using DEBUG_VFS_LOCKS. Discussed with: grog, mch, peter, phk Reviewed by: peter --- sys/coda/coda_vnops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/coda') diff --git a/sys/coda/coda_vnops.c b/sys/coda/coda_vnops.c index 5f86c09..1ef09bc 100644 --- a/sys/coda/coda_vnops.c +++ b/sys/coda/coda_vnops.c @@ -1865,7 +1865,7 @@ coda_islocked(v) struct cnode *cp = VTOC(ap->a_vp); ENTRY; - return (lockstatus(&cp->c_lock)); + return (lockstatus(&cp->c_lock, ap->a_p)); } /* How one looks up a vnode given a device/inode pair: */ -- cgit v1.1