diff options
author | Brian Behlendorf <[email protected]> | 2009-07-23 13:50:53 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2009-07-23 13:50:53 -0700 |
commit | 3c9ce2bf695a70887b4391a268e6f6c6f7868b91 (patch) | |
tree | 27a799b68d020364e8a1a92a32bfd10969f5f09e /module | |
parent | 2141116167c36051f757f426f1fb2242ab85d2a4 (diff) |
Allow kmem or vmem based slab for slab_lock and slab_overcommit tests.
The slab_overcommit test case could hang on a system with fragmented
memory because it was creating a kmem based slab with 256K objects.
To avoid this I've removed the KMC_KMEM flag which allows the slab
to decide if it should be kmem or vmem backed based on the object
side. The slab_lock test shares this code and will also be effected.
But the point of these two tests is to stress cache locking and
memory overcommit, the type of slab is not critical. In fact, allowing
the slab to do the default smart thing is preferable.
Diffstat (limited to 'module')
-rw-r--r-- | module/splat/splat-kmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/splat/splat-kmem.c b/module/splat/splat-kmem.c index fdf02a917..b021750ad 100644 --- a/module/splat/splat-kmem.c +++ b/module/splat/splat-kmem.c @@ -656,7 +656,7 @@ splat_kmem_cache_thread_test(struct file *file, void *arg, char *name, splat_kmem_cache_test_constructor, splat_kmem_cache_test_destructor, splat_kmem_cache_test_reclaim, - kcp, NULL, KMC_KMEM); + kcp, NULL, 0); if (!kcp->kcp_cache) { splat_vprint(file, name, "Unable to create '%s'\n", cache_name); rc = -ENOMEM; |