]> git.proxmox.com Git - mirror_spl.git/commit - module/splat/splat-kmem.c
Remove kmem_set_warning() interface replace with __GFP_NOWARN flag.
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 19 May 2010 23:53:13 +0000 (16:53 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 19 May 2010 23:53:13 +0000 (16:53 -0700)
commit5198ea0e713895efc06f1254e009e2271436fc6f
tree967f9ae9506768c3f27ae590e187919923edd4c9
parent627a74972c23ddd2d27163213317cdfa878eb4d7
Remove kmem_set_warning() interface replace with __GFP_NOWARN flag.

Remove the kmem_set_warning() hack used by the kmem-splat regression
tests with a per-allocation flag called __GFP_NOWARN.  This matches
the lower level linux flag of similar by slightly different function.
The idea is you can then explicitly set this flag on requests where
you know your breaking the max 8k rule but you need/want to do it
anyway.

This is currently used by the regression tests where we intentionally
push things to the limit but don't want the log noise.  Additionally,
we are forced to use it in spl_kmem_cache_create() because by default
NR_CPUS is very large and theres no easy way to handle that.

Finally, I've added a stack_dump() call to the warning when it is
trigger to make to clear exactly where the allocation is taking place.
module/spl/spl-kmem.c
module/splat/splat-kmem.c