summaryrefslogtreecommitdiff
path: root/sys/dev/microcode/zyd
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2017-12-16 03:13:29 +0000
committermrg <mrg@NetBSD.org>2017-12-16 03:13:29 +0000
commitacf2eea863d1c7cb98b5051d39e5e4badd9665a6 (patch)
tree7de76546e1e54e95ae823d74e6f5e48df5bc4673 /sys/dev/microcode/zyd
parentc94cf33623fd55bef352dd70eccb4944f8021404 (diff)
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@
Diffstat (limited to 'sys/dev/microcode/zyd')
0 files changed, 0 insertions, 0 deletions