summaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
authorArtur Paszkiewicz <artur.paszkiewicz@intel.com>2017-04-11 20:50:51 +0200
committerShaohua Li <shli@fb.com>2017-04-11 14:56:46 -0700
commitfcd403aff643a120dbb3f1851337df5353ac8970 (patch)
tree5da21eb9112d8dd9b6f22af1f478363580cf9c1b /drivers/md/md.c
parentf00d7c85be9e39752ef87047a019dfc4cefbd299 (diff)
downloadlinux-fcd403aff643a120dbb3f1851337df5353ac8970.tar.gz
linux-fcd403aff643a120dbb3f1851337df5353ac8970.tar.bz2
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 'drivers/md/md.c')
0 files changed, 0 insertions, 0 deletions