]> git.proxmox.com Git - mirror_spl.git/commit
splat taskq:delay: Add test case
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 6 Dec 2012 22:52:35 +0000 (14:52 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 12 Dec 2012 17:54:07 +0000 (09:54 -0800)
commit2f357826208085bacce9e0a29972c2e5728d5420
treeab7dd886e42f6d7b36e4c45fd0a0c3627b384de9
parentd9acd930b52503582425c6398fc8dbc1d7d4a01b
splat taskq:delay: Add test case

Add a test case for taskq_dispatch_delay() to verify it is working
properly.  The test dispatchs 100 tasks to a taskq with random
expiration times spread over 5 seconds.  As each task expires and
gets executed by a worker thread it verifies that it was run at
the correct time.  Once all the delayed tasks have been executed
we double check that all the dispatched tasks were successful.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
module/splat/splat-taskq.c