The NetBSD Project

CVS log for src/sys/kern/subr_pool.c

[BACK] Up to [] / src / sys / kern

Request diff between arbitrary revisions

Default branch: MAIN
Current tag: HEAD

Revision 1.219 / (download) - annotate - [select for diffs], Sat Dec 16 03:13:29 2017 UTC (13 hours, 49 minutes ago) by mrg
Branch: MAIN
Changes since 1.218: +17 -4 lines
Diff to previous 1.218 (colored)

hopefully workaround the irregularly "fork fails in init" problem.

if a pool is growing, and the grower is PR_NOWAIT, mark this.
if another caller wants to grow the pool and is also PR_NOWAIT,
busy-wait for the original caller, which should either succeed
or hard-fail fairly quickly.

implement the busy-wait by unlocking and relocking this pools
mutex and returning ERESTART.  other methods (such as having
the caller do this) were significantly more code and this hack
is fairly localised.

ok chs@ riastradh@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

CVSweb <>