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:	12fb39ec3e ("proc: Relax proc_rwmem()'s assertion on the process hold count")
Reported by:	Jenkins
This commit is contained in:
Mark Johnston 2022-03-01 15:08:25 -05:00
parent 6882d53b7f
commit 879b0604a8

View File

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