diff options
author | DeHackEd <[email protected]> | 2020-05-20 13:07:21 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2020-05-20 10:07:21 -0700 |
commit | 57434abae6af23cf0b0b360882762dfae7fee555 (patch) | |
tree | 579045b12eee6557d4d650869ab380266cae3b5c /module/lua/lstrlib.c | |
parent | de4f06c275430937026e328f48438cc799eba987 (diff) |
Use boot_ncpus in place of max_ncpus in taskq_create
Due to hotplug support or BIOS bugs sometimes max_ncpus can be
an absurdly high value. I have a system with 32 cores/threads
but reports max_ncpus == 440. This many threads potentially
cripples the system during arc_prune floods for example.
boot_ncpus is the number of working CPUs when called so use
that instead.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: DHE <[email protected]>
Closes #10282
Diffstat (limited to 'module/lua/lstrlib.c')
0 files changed, 0 insertions, 0 deletions