]> git.apps.os.sepia.ceph.com Git - fscrypt.git/commit
Only use up to MaxParallelism CPUs
authorJoe Richey <joerichey@google.com>
Sat, 27 Aug 2022 08:01:31 +0000 (01:01 -0700)
committerEric Biggers <ebiggers3@gmail.com>
Sun, 4 Dec 2022 22:36:56 +0000 (14:36 -0800)
commit5c7c3bcbcf1d18842e8dd9d2c346acdfb06fcf23
tree6c19cef564c6c5f3c09c576d436574004661d8b6
parent9d96413911725504aaf4f4f1b00d492ae21282de
Only use up to MaxParallelism CPUs

This prevents panics on 256-core systems, and has a 300-core system use
255 CPUs (the max) rather than 44 CPUs (300 casted to a uint8).

Signed-off-by: Joe Richey <joerichey@google.com>
[ebiggers: also set TruncationFixed at the end of getHashingCosts()]
Signed-off-by: Eric Biggers <ebiggers@google.com>
actions/config.go