summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2004-02-19 22:03:52 +0000
committerjhb <jhb@FreeBSD.org>2004-02-19 22:03:52 +0000
commita0f2609521e3d2c81a71159e0b06f43371aa11eb (patch)
treee5b31707f4b54ede4588ccf006d6b566539d6dcd /sys/dev
parent9d5e12afecfe191b704ae621a55b67f07261dd7d (diff)
downloadFreeBSD-src-a0f2609521e3d2c81a71159e0b06f43371aa11eb.zip
FreeBSD-src-a0f2609521e3d2c81a71159e0b06f43371aa11eb.tar.gz
Tidy up the thread taskqueue implementation and close a lost wakeup race.
Instead of creating a mutex that we msleep on but don't actually lock when doing the corresponding wakeup(), in the kthread, lock the mutex associated with our taskqueue and msleep while the queue is empty. Assert that the queue is locked when the callback function is called to wake the kthread.
Diffstat (limited to 'sys/dev')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud