]> git.proxmox.com Git - mirror_spl-debian.git/commit
Allow kmem or vmem based slab for slab_lock and slab_overcommit tests.
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 23 Jul 2009 20:50:53 +0000 (13:50 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 23 Jul 2009 20:50:53 +0000 (13:50 -0700)
commit3c9ce2bf695a70887b4391a268e6f6c6f7868b91
tree27a799b68d020364e8a1a92a32bfd10969f5f09e
parent2141116167c36051f757f426f1fb2242ab85d2a4
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.
module/splat/splat-kmem.c