mirror_zfs/module/splat
Ned Bass 55f10ae5e9 Implementation of a regression test for TQ_FRONT.
Use 3 threads and 8 tasks.  Dispatch the final 3 tasks with TQ_FRONT.
The first three tasks keep the worker threads busy while we stuff the
queues.  Use msleep() to force a known execution order, assuming
TQ_FRONT is properly honored.  Verify that the expected completion
order occurs.

The splat_taskq_test5_order() function may be useful in more than
one test.  This commit generalizes it by renaming the function to
splat_taskq_test_order() and adding a name argument instead of
assuming SPLAT_TASKQ_TEST5_NAME as the test name.

The documentation for splat taskq regression test #5 swaps the two required
completion orders in the diagram.  This commit corrects the error.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
2010-07-01 10:59:52 -07:00
..
.gitignore sun-misc-gitignore 2010-01-08 09:37:54 -08:00
Makefile.in Add basic credential support and splat tests. 2009-07-27 17:18:59 -07:00
splat-atomic.c Public Release Prep 2010-05-17 15:18:00 -07:00
splat-condvar.c Public Release Prep 2010-05-17 15:18:00 -07:00
splat-cred.c Public Release Prep 2010-05-17 15:18:00 -07:00
splat-ctl.c Initialize the /dev/splatctl device buffer 2010-07-01 10:59:46 -07:00
splat-generic.c Public Release Prep 2010-05-17 15:18:00 -07:00
splat-internal.h Public Release Prep 2010-05-17 15:18:00 -07:00
splat-kmem.c Use KM_NODEBUG macro in preference to __GFP_NOWARN. 2010-05-20 14:16:59 -07:00
splat-kobj.c Public Release Prep 2010-05-17 15:18:00 -07:00
splat-list.c Public Release Prep 2010-05-17 15:18:00 -07:00
splat-mutex.c Treat mutex->owner as volatile 2010-06-28 16:02:57 -07:00
splat-random.c Public Release Prep 2010-05-17 15:18:00 -07:00
splat-rwlock.c Simplify rwlock implementation. 2010-05-20 14:20:34 -07:00
splat-taskq.c Implementation of a regression test for TQ_FRONT. 2010-07-01 10:59:52 -07:00
splat-thread.c Fix subtle race in threads test case 2010-06-28 12:34:20 -07:00
splat-time.c Public Release Prep 2010-05-17 15:18:00 -07:00
splat-vnode.c Public Release Prep 2010-05-17 15:18:00 -07:00