]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: add test to replicate low memory race conditions
authorSidhartha Kumar <sidhartha.kumar@oracle.com>
Mon, 12 Aug 2024 19:05:43 +0000 (15:05 -0400)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 17 Aug 2024 00:53:11 +0000 (17:53 -0700)
commit3f0ffdafe3dde6d8955ff79fef4c8306e3047575
tree4053d8b2c05ddc91d680a2960ed50779a2b9f07b
parentebe11905726e3751be33ebeaea5399b9fbf56da8
maple_tree: add test to replicate low memory race conditions

Add new callback fields to the userspace implementation of struct
kmem_cache.  This allows for executing callback functions in order to
further test low memory scenarios where node allocation is retried.

This callback can help test race conditions by calling a function when a
low memory event is tested.

Link: https://lkml.kernel.org/r/20240812190543.71967-2-sidhartha.kumar@oracle.com
Signed-off-by: Sidhartha Kumar <sidhartha.kumar@oracle.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/maple_tree.c
tools/testing/radix-tree/maple.c
tools/testing/shared/linux.c