]> sourceware.org Git - systemtap.git/commit
PR14957: Don't force __GFP_ZERO into kmalloc_node
authorJosh Stone <jistone@redhat.com>
Thu, 13 Dec 2012 21:31:53 +0000 (13:31 -0800)
committerJosh Stone <jistone@redhat.com>
Thu, 13 Dec 2012 21:31:53 +0000 (13:31 -0800)
commit21578d0bf770ea30307b8140f0c6303c8e559f5e
tree33e2b3b13b674da916c6c8d4e0b8bb85976acd14
parent83a2fc348bdc180101e2b9110eb3c3d2f35e09a8
PR14957: Don't force __GFP_ZERO into kmalloc_node

It turns out that rhel5-era kernels have a BUG check in slab cache_grow
that doesn't permit __GFP_ZERO from this path.  Later kernels corrected
this, as the implementation of kzalloc_node is just kmalloc_node with
__GFP_ZERO added, but for compatibility we can't rely on that.

* runtime/linux/alloc.c (_stp_kzalloc_node_gfp): Use a plain
  _stp_kmalloc_node_gfp, then memset-0 manually.
runtime/linux/alloc.c
This page took 0.026851 seconds and 5 git commands to generate.