Print this page
OS-7753 THREAD_KPRI_RELEASE does nothing of the sort
Reviewed by: Bryan Cantrill <bryan@joyent.com>
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
@@ -19,10 +19,11 @@
* CDDL HEADER END
*/
/*
* Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright 2019 Joyent, Inc.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
@@ -415,11 +416,10 @@
if (p->p_proc_flag & P_PR_LOCK)
return (1);
p->p_proc_flag |= P_PR_LOCK;
- THREAD_KPRI_REQUEST();
return (0);
}
/*
@@ -500,11 +500,10 @@
while (p->p_proc_flag & P_PR_LOCK) {
cv_wait(&pr_pid_cv[p->p_slot], &p->p_lock);
}
p->p_proc_flag |= P_PR_LOCK;
- THREAD_KPRI_REQUEST();
}
void
sprunlock(proc_t *p)
{
@@ -517,11 +516,10 @@
ASSERT(MUTEX_HELD(&p->p_lock));
cv_signal(&pr_pid_cv[p->p_slot]);
p->p_proc_flag &= ~P_PR_LOCK;
mutex_exit(&p->p_lock);
- THREAD_KPRI_RELEASE();
}
void
pid_init(void)
{