[PATCH v1 0/1] Remove the need to alloc memory in uv.c

Harald Freudenberger
2025-03-27T15:38:30Z

The pkey handler is calling the uv in some circumstances
where no memory allocation is acceptable. As of now only
the uv_get_secret_metadata() function allocates memory.
As this is exactly one page, lets introduce a pre-allocated
work page and protect the concurrent use with a mutex to
remove dynamic memory allocation and free. This page may be
also used with future extension to the uv code.

Harald Freudenberger (1):
s390/uv: Prealloc and use one work page

arch/s390/kernel/uv.c | 22 ++++++++++++++++++----
1 file changed, 18 insertions(+), 4 deletions(-)

--
2.43.0