diff options
| author | Petr Tesarik <[email protected]> | 2023-10-25 08:44:25 +0000 |
|---|---|---|
| committer | Christoph Hellwig <[email protected]> | 2023-10-25 14:26:20 +0000 |
| commit | d5090484b021794271280ab64d20253883b7f6fd (patch) | |
| tree | 972e92c18aa040f2fd8040f22229fe07e2b25e74 /scripts/mod/file2alias.c | |
| parent | Merge tag 'mm-hotfixes-stable-2023-10-24-09-40' of git://git.kernel.org/pub/s... (diff) | |
| download | kernel-d5090484b021794271280ab64d20253883b7f6fd.tar.gz kernel-d5090484b021794271280ab64d20253883b7f6fd.zip | |
swiotlb: do not try to allocate a TLB bigger than MAX_ORDER pages
When allocating a new pool at runtime, reduce the number of slabs so
that the allocation order is at most MAX_ORDER. This avoids a kernel
warning in __alloc_pages().
The warning is relatively benign, because the pool size is subsequently
reduced when allocation fails, but it is silly to start with a request
that is known to fail, especially since this is the default behavior if
the kernel is built with CONFIG_SWIOTLB_DYNAMIC=y and booted without any
swiotlb= parameter.
Reported-by: Ben Greear <[email protected]>
Closes: https://lore.kernel.org/netdev/[email protected]/
Fixes: 1aaa736815eb ("swiotlb: allocate a new memory pool when existing pools are full")
Signed-off-by: Petr Tesarik <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'scripts/mod/file2alias.c')
0 files changed, 0 insertions, 0 deletions
