zfs/module/splat
Brian Behlendorf 7257ec4185 Fix taskq_wait() not waiting bug
I'm very surprised this has not surfaced until now.  But the taskq_wait()
implementation work only wait successfully the first time it was called.
Subsequent usage of taskq_wait() on the taskq would not wait.

The issue was caused by tq->tq_lowest_id being set to MAX_INT after the
first wait completed.  This caused subsequent waits which check that the
waiting id is less than the lowest taskq id to always succeed.  The fix
is to ensure that tq->tq_lowest_id is never set larger than tq->tq_next.id.

Additional fixes which were added to this patch include:
1) Fix a race by placing the taskq_wait_check() in the tq->tq_lock spinlock.
2) taskq_wait() should wait for the largest outstanding id.
3) Multiple spelling corrections.
4) Added taskq wait regression test to validate correct behavior.
2009-03-15 15:13:49 -07:00
..
Makefile.in Build system and packaging (RPM support) 2009-03-09 15:56:55 -07:00
splat-atomic.c Rename modules to module and update references 2009-01-15 10:44:54 -08:00
splat-condvar.c Rename modules to module and update references 2009-01-15 10:44:54 -08:00
splat-ctl.c Rename modules to module and update references 2009-01-15 10:44:54 -08:00
splat-generic.c Rename modules to module and update references 2009-01-15 10:44:54 -08:00
splat-internal.h kmem_cache hardening and performance improvements 2009-01-30 20:54:49 -08:00
splat-kmem.c Coverity 9656: Forward NULL 2009-02-18 10:09:01 -08:00
splat-kobj.c Rename modules to module and update references 2009-01-15 10:44:54 -08:00
splat-list.c Coverity 9657: Resource Leak 2009-02-18 10:16:26 -08:00
splat-mutex.c Mutex tests updated to use task queues instead of work queues. 2009-03-15 15:05:38 -07:00
splat-random.c Rename modules to module and update references 2009-01-15 10:44:54 -08:00
splat-rwlock.c Sleep uninteruptibly, waking up early may result in a crash 2009-01-22 09:58:48 -08:00
splat-taskq.c Fix taskq_wait() not waiting bug 2009-03-15 15:13:49 -07:00
splat-thread.c Rename modules to module and update references 2009-01-15 10:44:54 -08:00
splat-time.c Rename modules to module and update references 2009-01-15 10:44:54 -08:00
splat-vnode.c Rename modules to module and update references 2009-01-15 10:44:54 -08:00