proc: Remove assertion that P_WEXIT is not set in proc_rwmem()
exit1() sets P_WEXIT before waiting for holding threads to finish, rather than after, so this assertion is racy. Fixes: 12fb39ec3e6b ("proc: Relax proc_rwmem()'s assertion on the process hold count") Reported by: Jenkins
This commit is contained in:
parent
6882d53b7f
commit
879b0604a8
@ -340,8 +340,6 @@ proc_rwmem(struct proc *p, struct uio *uio)
|
||||
*/
|
||||
if (p != curproc)
|
||||
PROC_ASSERT_HELD(p);
|
||||
KASSERT((p->p_flag & P_WEXIT) == 0,
|
||||
("%s: process %p is exiting", __func__, p));
|
||||
PROC_LOCK_ASSERT(p, MA_NOTOWNED);
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user