Re: [PATCH] padata: Honor the caller's alignment in case of chunk_size 0

From: Andrew Morton
Date: Wed Aug 21 2024 - 18:41:51 EST


On Thu, 22 Aug 2024 02:32:52 +0530 Kamlesh Gurudasani <kamlesh@xxxxxx> wrote:

> In the case where we are forcing the ps.chunk_size to be at least 1,
> we are ignoring the caller's alignment.
>
> Move the forcing of ps.chunk_size to be at least 1 before rounding it
> up to caller's alignment, so that caller's alignment is honored.
>
> While at it, use max() to force the ps.chunk_size to be at least 1 to
> improve readability.

Please (as always) describe the userspace-visible runtime effects of
this change. This helps others to determine which kernel(s) should be
patched. And it helps others decide whether this fix might address an
issue which they are encountering.