]> git.proxmox.com Git - mirror_spl.git/commit
Implementation of a regression test for TQ_FRONT.
authorNed Bass <bass6@llnl.gov>
Thu, 1 Jul 2010 00:34:57 +0000 (17:34 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 1 Jul 2010 17:59:52 +0000 (10:59 -0700)
commit55f10ae5e91817e339f89e312a747ef6bc2dde66
treee5209680d40f8172c76fd8412e33f68f00167dbe
parent1a73940d39f07332921a7f78eaca9bd9266c5c7a
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>
module/splat/splat-taskq.c