Loading
crypto: iaa - Use cpumask_weight() when rebalancing
mainline inclusion from mainline-v6.10-rc1 commit 8f0e0cf74ccef41b383daddcf5447bba655031b3 category: bugfix bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I9TA1S CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8f0e0cf74ccef41b383daddcf5447bba655031b3 -------------------------------- If some cpus are offlined, or if the node mask is smaller than expected, the 'nonexistent cpu' warning in rebalance_wq_table() may be erroneously triggered. Use cpumask_weight() to make sure we only iterate over the exact number of cpus in the mask. Also use num_possible_cpus() instead of num_online_cpus() to make sure all slots in the wq table are initialized. Intel-SIG: commit 8f0e0cf74cce crypto: iaa - Use cpumask_weight() when rebalancing. Backporting patches for Intel IAA crypto driver on Intel Xeon platform. Signed-off-by:Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by:
Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by:
Xiaochen Shen <xiaochen.shen@intel.com>