diff options
author | jhb <jhb@FreeBSD.org> | 2001-10-26 06:32:21 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-10-26 06:32:21 +0000 |
commit | e1bba71fc994749776fc980d0ba8779a3c728bd1 (patch) | |
tree | 4970e512925cb61a446831a485b367f3b71fa0ef /sys/dev/amr | |
parent | d410ad416617dd759436028e1cb0f545fe5f5d07 (diff) | |
download | FreeBSD-src-e1bba71fc994749776fc980d0ba8779a3c728bd1.zip FreeBSD-src-e1bba71fc994749776fc980d0ba8779a3c728bd1.tar.gz |
Add locking to taskqueues. There is one mutex per task, one mutex per
queue, and a mutex to protect the global list of taskqueues. The only
visible change is that a TASK_DESTROY() macro has been added to mirror
the TASK_INIT() macro to destroy a task before it is free'd.
Submitted by: Andrew Reiter <awr@watson.org>
Diffstat (limited to 'sys/dev/amr')
-rw-r--r-- | sys/dev/amr/amr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/amr/amr.c b/sys/dev/amr/amr.c index 2b5eca1..1e928c1 100644 --- a/sys/dev/amr/amr.c +++ b/sys/dev/amr/amr.c @@ -320,6 +320,10 @@ amr_free(struct amr_softc *sc) TAILQ_REMOVE(&sc->amr_cmd_clusters, acc, acc_link); amr_freecmd_cluster(acc); } + +#if __FreeBSD_version >= 500005 + TASK_DESTROY(&sc->amr_task_complete); +#endif } /******************************************************************************* |