s390/nmi: get rid of private slab cache
authorHeiko Carstens <hca@linux.ibm.com>
Wed, 30 Nov 2022 18:43:28 +0000 (19:43 +0100)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Tue, 6 Dec 2022 15:18:26 +0000 (16:18 +0100)
commitbb3860cc02c660b409a1e02521b84b1d7d4e84cd
treec787504a45ab48437b3aa2316e9fa558fe937d4f
parent742aed05af97dc5ba6c53a4b6cb6a7b31e32f9e9
s390/nmi: get rid of private slab cache

Get rid of private "nmi_save_areas" slab cache. The only reason this was
introduced years ago was that with some slab debugging options allocations
would only guarantee a minimum alignment of ARCH_KMALLOC_MINALIGN, which
was eight bytes back then. This is not sufficient for the extended machine
check save area.

However since commit 59bb47985c1d ("mm, sl[aou]b: guarantee natural
alignment for kmalloc(power-of-two)") kmalloc guarantees a power-of-two
alignment even with debugging options enabled.

Therefore the private slab cache can be removed.

Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/kernel/nmi.c