| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
it has been unused since december, and unhooked from the build since
christmas.
ok krw@
|
| |
|
|
|
|
| |
ok deraadt@ dlg@ phessler@
|
|
|
|
| |
after discussions with beck deraadt kettenis.
|
|
|
|
|
| |
resurrection of the bad idiom in the tree.
sufficient review by miod, kettenis, tedu
|
|
|
|
| |
ok matthew guenther mikeb
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. though shalt not hold a mutex while sleeping, which kthread_create can
do. instead of holding the wq mutex over the kthread_create and increasing
the number of running threads after kthread_create succeeds, this counts
the thread and drops the mutex before kthread_create. after the call it
takes the mutex again and decrements the number of threads if the call
failed.
2. if a workq is created during autoconf, the actual thread create
is deferred to when the scheduler is running. if the workq is
destroyed before then, the wq memory gets freed and then the deferred
thread creation will be using freed memory. we now have a workq
state variable so we can do the right thing at the different stages
of the workqs lifetime.
ok matthew@
|
|
|
|
|
|
|
|
|
| |
task and shove it on a list. allocations can fail, so if something
that wants to run a task later already has memory to handle the
workq task then let it provide it via a new function called
workq_queue_task.
ok kettenis@
|
|
|
|
|
|
|
| |
waiting for all the workqs to die wakeup more often than
it should have.
ok dlg@ tedu@
|
|
|
|
|
|
| |
tested by many on many archs including several alpha test.
ok tedu@ go for it deraadt@
|
|
|
|
|
|
|
| |
lock when we've never given it up. this is a remnant of the mpsafe
workq stuff we had that wasnt cleaned up properly.
found by and fix tested by oga@
|
|
|
|
| |
sufficient exclusion on alpha, leading to self-locking panics.
|
|
|
|
|
| |
creation of threads which may have caused multile syswq threads to start.
ok dlg
|
|
|
|
| |
bad idea to have functions that react unpredictably.
|
|
|
|
|
|
| |
combined, this lets us use crypto before the thread is running
and therefore cryptoraid can attach nice and early.
ok/testing deraadt mbalmer marco
|
|
|
|
|
|
| |
(stdarg.h, leftover from the vararg's idea).
ok tedu@
|
|
|
|
| |
ok dlg
|
|
this type of code is implemented many times already in the kernel, this is
a generic version of all those replicated code bases.
originally from tedu@
ok tedu@ tom@ deraadt@
|