Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/kern



Module Name:    src
Committed By:   bouyer
Date:           Fri May  9 16:06:49 UTC 2025

Modified Files:
        src/sys/kern: subr_pool.c

Log Message:
pool_grow(): The thread setting PR_GROWINGNOWAIT holds the pr_lock and
should not release it before clearing PR_GROWINGNOWAIT because it's called
with !PR_WAITOK. No other thread should see PR_GROWINGNOWAIT while holding
pr_lock, so PR_GROWINGNOWAIT looks useless and can probably be removed.
For now, only KASSERT that PR_GROWINGNOWAIT is never seeen, to make sure.
Note that in the PR_GROWINGNOWAIT case we would exit/reenter pr_lock
while we don't have PR_WAITOK, which is probably wrong too.


To generate a diff of this commit:
cvs rdiff -u -r1.292 -r1.293 src/sys/kern/subr_pool.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index