s390/pkey: improve pkey retry behavior
authorHarald Freudenberger <freude@linux.ibm.com>
Thu, 8 Feb 2024 09:33:35 +0000 (10:33 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Thu, 7 Mar 2024 13:41:15 +0000 (14:41 +0100)
commit5dabfecad4a0868201af2ffb69dcd3223f9ca630
treea314b1c36b029de3cdd1a7bcfbe839fe395cdd84
parentc3384369bc530e95958985918771af6d7b74d014
s390/pkey: improve pkey retry behavior

This patch reworks and improves the pkey retry behavior for the
pkey_ep11key2pkey() function. In contrast to the pkey_skey2pkey()
function which is used to trigger a protected key derivation from an
CCA secure data or cipher key the EP11 counterpart function had no
proper retry loop implemented. This patch now introduces code which
acts similar to the retry already done for CCA keys for this function
used for EP11 keys.

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Holger Dengler <dengler@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/crypto/pkey_api.c