]> git.proxmox.com Git - mirror_spl.git/commit
Turn on both PF_FSTRANS and PF_MEMALLOC_NOIO in spl_fstrans_mark
authorChunwei Chen <david.chen@osnexus.com>
Mon, 18 Jan 2016 22:41:45 +0000 (14:41 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 20 Jan 2016 19:38:31 +0000 (11:38 -0800)
commitd348f23a6a9b3017524b66c9f7c9d32ec283e178
tree91f34681cae82c00f73213d8b6f5b90c506a506f
parente843553d0341c4edd880f5ad40da8211669348bd
Turn on both PF_FSTRANS and PF_MEMALLOC_NOIO in spl_fstrans_mark

In b4ad50a, we abandoned memalloc_noio_save in favor of spl_fstrans_mark
because earlier kernel with it doesn't turn off __GFP_FS. However, for newer
kernel, we would prefer PF_MEMALLOC_NOIO because it would work for allocation
in kernel which we cannot control otherwise. So in this patch, we turn on both
PF_FSTRANS and PF_MEMALLOC_NOIO in spl_fstrans_mark.

Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #523
include/sys/kmem.h