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;
(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)
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;
}
" \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;
}