From cda369cac4c8f71c034c7a35fc66f772e501eaba Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Mon, 18 Aug 2003 18:02:33 +0000 Subject: [PATCH] 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. --- sys/fs/pseudofs/pseudofs_vnops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/fs/pseudofs/pseudofs_vnops.c b/sys/fs/pseudofs/pseudofs_vnops.c index 93aa23c100f..f5d20d62db8 100644 --- a/sys/fs/pseudofs/pseudofs_vnops.c +++ b/sys/fs/pseudofs/pseudofs_vnops.c @@ -543,7 +543,7 @@ static int pfs_iterate(struct thread *td, pid_t pid, struct pfs_node *pd, struct pfs_node **pn, struct proc **p) { - mtx_assert(&allproc, MA_OWNED); + sx_assert(&allproc, SX_LOCKED); again: if (*pn == NULL) { /* first node */