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.
This commit is contained in:
John Baldwin 2003-08-18 18:02:33 +00:00
parent 9cf8f2f707
commit cda369cac4

View File

@ -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 */