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.
This commit is contained in:
parent
2141116167
commit
3c9ce2bf69
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue