Print this page
11909 THREAD_KPRI_RELEASE does nothing of the sort
Reviewed by: Bryan Cantrill <bryan@joyent.com>
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>

*** 19,28 **** --- 19,29 ---- * 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,425 **** if (p->p_proc_flag & P_PR_LOCK) return (1); p->p_proc_flag |= P_PR_LOCK; - THREAD_KPRI_REQUEST(); return (0); } /* --- 416,425 ----
*** 500,510 **** 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) { --- 500,509 ----
*** 517,527 **** 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) { --- 516,525 ----