aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <[email protected]>2019-04-03 04:12:33 +0000
committerMichael Ellerman <[email protected]>2019-04-17 11:36:51 +0000
commit7a3a4d763837d3aa654cd1059030950410c04d77 (patch)
tree7aac3da0f61a6d20c362b9dda93bdcb1d0be833f /scripts/gcc-plugins/cyc_complexity_plugin.c
parentpowerpc/mm_iommu: Fix potential deadlock (diff)
downloadkernel-7a3a4d763837d3aa654cd1059030950410c04d77.tar.gz
kernel-7a3a4d763837d3aa654cd1059030950410c04d77.zip
powerpc/mm_iommu: Allow pinning large regions
When called with vmas_arg==NULL, get_user_pages_longterm() allocates an array of nr_pages*8 which can easily get greater that the max order, for example, registering memory for a 256GB guest does this and fails in __alloc_pages_nodemask(). This adds a loop over chunks of entries to fit the max order limit. Fixes: 678e174c4c16 ("powerpc/mm/iommu: allow migration of cma allocated pages during mm_iommu_do_alloc", 2019-03-05) Signed-off-by: Alexey Kardashevskiy <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions