[PATCH] kho: make sure scratch size is always aligned by CMA_MIN_ALIGNMENT_BYTES
Pasha Tatashin
pasha.tatashin at soleen.com
Thu May 21 11:54:23 PDT 2026
On Tue, 19 May 2026 18:05:49 +0200, Pratyush Yadav wrote:
> When using scratch_scale, the scratch sizes are rounded up to
> CMA_MIN_ALIGNMENT_BYTES since they will be released as MIGRATE_CMA. This
> is not done when using fixed scratch sizes via command line. This can
> result in user specifying a size which is not aligned, and thus kernel
> releasing a pageblock that is only partially scratch.
>
> Do the rounding up for both cases in scratch_size_update().
>
> [...]
Applied, thanks!
[1/1] kho: make sure scratch size is always aligned by CMA_MIN_ALIGNMENT_BYTES
commit: 4129715f7ac5b71183350f1983023caf0464cb9b
Best regards,
--
Pasha Tatashin <pasha.tatashin at soleen.com>
More information about the kexec
mailing list