Revert "padata: Honor the caller's alignment in case of chunk_size 0"
This reverts commit d937fc3fb1
.
This commit is contained in:
parent
22d62756d2
commit
88d2580c4c
1 changed files with 0 additions and 3 deletions
|
@ -516,12 +516,9 @@ void __init padata_do_multithreaded(struct padata_mt_job *job)
|
|||
* thread function. Load balance large jobs between threads by
|
||||
* increasing the number of chunks, guarantee at least the minimum
|
||||
* chunk size from the caller, and honor the caller's alignment.
|
||||
* Ensure chunk_size is at least 1 to prevent divide-by-0
|
||||
* panic in padata_mt_helper().
|
||||
*/
|
||||
ps.chunk_size = job->size / (ps.nworks * load_balance_factor);
|
||||
ps.chunk_size = max(ps.chunk_size, job->min_chunk);
|
||||
ps.chunk_size = max(ps.chunk_size, 1ul);
|
||||
ps.chunk_size = roundup(ps.chunk_size, job->align);
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue