summaryrefslogtreecommitdiffstats
path: root/mm/khugepaged.c
diff options
context:
space:
mode:
authorArtur Paszkiewicz2017-04-11 20:50:51 +0200
committerShaohua Li2017-04-11 23:56:46 +0200
commitfcd403aff643a120dbb3f1851337df5353ac8970 (patch)
tree5da21eb9112d8dd9b6f22af1f478363580cf9c1b /mm/khugepaged.c
parentmd/raid0: fix up bio splitting. (diff)
downloadkernel-qcow2-linux-fcd403aff643a120dbb3f1851337df5353ac8970.tar.gz
kernel-qcow2-linux-fcd403aff643a120dbb3f1851337df5353ac8970.tar.xz
kernel-qcow2-linux-fcd403aff643a120dbb3f1851337df5353ac8970.zip
raid5-ppl: use a single mempool for ppl_io_unit and header_page
Allocate both struct ppl_io_unit and its header_page from a shared mempool to avoid a possible deadlock. Implement allocate and free functions for the mempool, remove the second pool for allocating header_page. The header_pages are now freed with their io_units, not when the ppl bio completes. Also, use GFP_NOWAIT instead of GFP_ATOMIC for allocating ppl_io_unit because we can handle failed allocations and there is no reason to utilize emergency reserves. Suggested-by: NeilBrown <neilb@suse.com> Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'mm/khugepaged.c')
0 files changed, 0 insertions, 0 deletions