Home
last modified time | relevance | path

Searched refs:nworks (Results 1 – 1 of 1) sorted by relevance

/linux-5.19.10/kernel/
Dpadata.c42 int nworks; member
96 static int __init padata_work_alloc_mt(int nworks, void *data, in padata_work_alloc_mt() argument
103 for (i = 1; i < nworks; ++i) { in padata_work_alloc_mt()
455 done = (ps->nworks_fini == ps->nworks); in padata_mt_helper()
475 int nworks; in padata_do_multithreaded() local
481 nworks = max(job->size / job->min_chunk, 1ul); in padata_do_multithreaded()
482 nworks = min(nworks, job->max_threads); in padata_do_multithreaded()
484 if (nworks == 1) { in padata_do_multithreaded()
493 ps.nworks = padata_work_alloc_mt(nworks, &ps, &works); in padata_do_multithreaded()
502 ps.chunk_size = job->size / (ps.nworks * load_balance_factor); in padata_do_multithreaded()