summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2009-01-30 21:24:42 -0800
committerBrian Behlendorf <[email protected]>2009-01-30 21:24:42 -0800
commit10a4be0f0369b80c44e013513acf7ad36f64cfaa (patch)
tree4c451c88327a54e40228e58c8c6b8dc43747cc76 /module
parent416bae036bd1113a6102be4589dd47cee8d2b08a (diff)
Update thread tests to have max_time
Diffstat (limited to 'module')
-rw-r--r--module/splat/splat-kmem.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/splat/splat-kmem.c b/module/splat/splat-kmem.c
index c592e983c..c57e280b0 100644
--- a/module/splat/splat-kmem.c
+++ b/module/splat/splat-kmem.c
@@ -630,7 +630,7 @@ out_free:
static int
splat_kmem_cache_thread_test(struct file *file, void *arg, char *name,
- int size, int alloc)
+ int size, int alloc, int max_time)
{
kmem_cache_priv_t *kcp;
kthread_t *thr;
@@ -701,7 +701,7 @@ splat_kmem_cache_thread_test(struct file *file, void *arg, char *name,
(unsigned long)(kcp->kcp_alloc *
SPLAT_KMEM_THREADS));
- if (delta.tv_sec >= 5)
+ if (delta.tv_sec >= max_time)
rc = -ETIME;
if (!rc && kcp->kcp_rc)
@@ -989,7 +989,7 @@ splat_kmem_test10(struct file *file, void *arg)
continue;
rc = splat_kmem_cache_thread_test(file, arg,
- SPLAT_KMEM_TEST10_NAME, size, alloc);
+ SPLAT_KMEM_TEST10_NAME, size, alloc, 5);
if (rc)
break;
}
@@ -1022,7 +1022,7 @@ splat_kmem_test11(struct file *file, void *arg)
" \ttot/max/calc\ttot/max/calc\n");
rc = splat_kmem_cache_thread_test(file, arg,
- SPLAT_KMEM_TEST11_NAME, size, alloc);
+ SPLAT_KMEM_TEST11_NAME, size, alloc, 60);
return rc;
}