diff options
author | Ingo Molnar <mingo@kernel.org> | 2023-10-23 11:32:25 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2023-10-23 11:32:25 +0200 |
commit | 4e5b65a22ba0cabe58f895cd797cb10a763d6994 (patch) | |
tree | 067033eb0d1d284b6ca89c2bfa4034906ff59ad9 /mm | |
parent | sched/fair: Remove unused 'curr' argument from pick_next_entity() (diff) | |
parent | Linux 6.6-rc7 (diff) | |
download | linux-4e5b65a22ba0cabe58f895cd797cb10a763d6994.tar.xz linux-4e5b65a22ba0cabe58f895cd797cb10a763d6994.zip |
Merge tag 'v6.6-rc7' into sched/core, to pick up fixes
Pick up recent sched/urgent fixes merged upstream.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/slab_common.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mm/slab_common.c b/mm/slab_common.c index 8fda308e400d..9bbffe82d65a 100644 --- a/mm/slab_common.c +++ b/mm/slab_common.c @@ -895,10 +895,13 @@ void __init setup_kmalloc_cache_index_table(void) static unsigned int __kmalloc_minalign(void) { + unsigned int minalign = dma_get_cache_alignment(); + if (IS_ENABLED(CONFIG_DMA_BOUNCE_UNALIGNED_KMALLOC) && is_swiotlb_allocated()) - return ARCH_KMALLOC_MINALIGN; - return dma_get_cache_alignment(); + minalign = ARCH_KMALLOC_MINALIGN; + + return max(minalign, arch_slab_minalign()); } void __init |