public inbox for linux-s390@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/1] Remove the need to alloc memory in uv.c
@ 2025-03-27 15:38 Harald Freudenberger
  2025-03-27 15:38 ` [PATCH v1 1/1] s390/uv: Prealloc and use one work page Harald Freudenberger
  0 siblings, 1 reply; 5+ messages in thread
From: Harald Freudenberger @ 2025-03-27 15:38 UTC (permalink / raw)
  To: seiden; +Cc: linux-s390

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-03-31  9:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-27 15:38 [PATCH v1 0/1] Remove the need to alloc memory in uv.c Harald Freudenberger
2025-03-27 15:38 ` [PATCH v1 1/1] s390/uv: Prealloc and use one work page Harald Freudenberger
2025-03-28 10:34   ` Heiko Carstens
2025-03-28 12:51     ` Harald Freudenberger
2025-03-31  9:35       ` Heiko Carstens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox