diff options
author | jhb <jhb@FreeBSD.org> | 2003-08-18 18:02:33 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-08-18 18:02:33 +0000 |
commit | 97d2d15dc7f4491dc5512c07201e857279c90f2b (patch) | |
tree | 8473e1d2260e88bb7881343adbac149612103cf3 /sys | |
parent | 1b98e5606381ba4df6a575c2c97c484e8969abe1 (diff) | |
download | FreeBSD-src-97d2d15dc7f4491dc5512c07201e857279c90f2b.zip FreeBSD-src-97d2d15dc7f4491dc5512c07201e857279c90f2b.tar.gz |
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.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/fs/pseudofs/pseudofs_vnops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/pseudofs/pseudofs_vnops.c b/sys/fs/pseudofs/pseudofs_vnops.c index 93aa23c..f5d20d6 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 */ |