From 88d2580c4cdfefcdb566906d1b75b78e8dca6581 Mon Sep 17 00:00:00 2001 From: Ksawlii Date: Sun, 24 Nov 2024 00:23:30 +0100 Subject: [PATCH] Revert "padata: Honor the caller's alignment in case of chunk_size 0" This reverts commit d937fc3fb151b278a191d447ea7cf1df8b76616f. --- kernel/padata.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/kernel/padata.c b/kernel/padata.c index 41d5bf2fa..2a514cf83 100755 --- a/kernel/padata.c +++ b/kernel/padata.c @@ -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); /*