]> Gentwo Git Trees - linux/.git/commit
s390/zcrypt: Introduce pre-allocated device status array for cca misc
authorHarald Freudenberger <freude@linux.ibm.com>
Thu, 24 Apr 2025 13:36:03 +0000 (15:36 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Wed, 30 Apr 2025 09:34:01 +0000 (11:34 +0200)
commitef800db6152e2879af1ae40b3a0974771752ad34
treec8e52c2f36ed0de56c250ec61c9a3717c9894303
parenta01e748101d36633f76cde5310b7fff3cfd1920d
s390/zcrypt: Introduce pre-allocated device status array for cca misc

Introduce a pre-allocated device status array memory together with
a mutex controlling the occupation to be used by the findcard2()
function. Limit the device status array to max 128 cards and max
128 domains to reduce the size of this pre-allocated memory to 64 KB.

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Holger Dengler <dengler@linux.ibm.com>
Link: https://lore.kernel.org/r/20250424133619.16495-10-freude@linux.ibm.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/crypto/zcrypt_ccamisc.c