]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
s390/crypto: Extend protected key conversion retry loop
authorHarald Freudenberger <freude@linux.ibm.com>
Wed, 21 May 2025 08:01:18 +0000 (10:01 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Wed, 21 May 2025 10:02:27 +0000 (12:02 +0200)
commitb5185ea1a6bd35957e556129bb92a64f83aa65e4
tree04edfde54dac6639a8739525259841106f8411c6
parentc4abe6234246c75cdc43326415d9cff88b7cf06c
s390/crypto: Extend protected key conversion retry loop

CI runs show that the protected key conversion retry loop
runs into timeout if a master key change was initiated on
the addressed crypto resource shortly before the conversion
request.

This patch extends the retry logic to run in total 5 attempts
with increasing delay (200, 400, 800 and 1600 ms) in case of
a busy card.

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Ingo Franzki <ifranzki@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/crypto/paes_s390.c