Skip to content
Snippets Groups Projects
Commit f84155ca authored by Anthony Yznaga's avatar Anthony Yznaga Committed by Herbert Xu
Browse files

padata: use alignment when calculating the number of worker threads


For multithreaded jobs the computed chunk size is rounded up by the
caller-specified alignment. However, the number of worker threads to
use is computed using the minimum chunk size without taking alignment
into account. A sufficiently large alignment value can result in too
many worker threads being allocated for the job.

Signed-off-by: default avatarAnthony Yznaga <anthony.yznaga@oracle.com>
Acked-by: default avatarDaniel Jordan <daniel.m.jordan@oracle.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 1e620445
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment