]> granicus.if.org Git - spl/commit
Detect kernels that honor gfp flags passed to vmalloc()
authorRichard Yao <ryao@cs.stonybrook.edu>
Thu, 7 Jun 2012 02:38:12 +0000 (22:38 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 11 Jul 2012 18:44:27 +0000 (11:44 -0700)
commit36811b4430aaea8c8b91bbe7d812a26799865499
treeb61719801e34ed403f48987c7f557a047639424f
parent973e8269bd99f9440149892d598f8914113d0278
Detect kernels that honor gfp flags passed to vmalloc()

zfsonlinux/spl@2092cf68d89a51eb0d6193aeadabb579dfc4b4a0 used
PF_MEMALLOC to workaround a bug in the Linux kernel where
allocations did not honor the gfp flags passed to vmalloc().
Unfortunately, PF_MEMALLOC has the side effect of permitting
allocations to allocate pages outside of ZONE_NORMAL. This
has been observed to result in the depletion of ZONE_DMA32.

A kernel patch is available in the Gentoo bug tracker for
this issue.

  https://bugs.gentoo.org/show_bug.cgi?id=416685

This negates any benefit PF_MEMALLOC provides, so we introduce
an autotools check to disable the use of PF_MEMALLOC on
systems with patched kernels.

Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #126
config/spl-build.m4
configure
module/spl/spl-kmem.c
spl_config.h.in