Whamcloud - gitweb
LU-8130 libcfs: don't use radix tree for xarray 40/51840/7
authorJames Simmons <jsimmons@infradead.org>
Wed, 2 Aug 2023 18:36:11 +0000 (14:36 -0400)
committerOleg Drokin <green@whamcloud.com>
Sat, 19 Aug 2023 05:35:16 +0000 (05:35 +0000)
commit778791dd7da107710c2311935a24cfd7e7a5fd85
tree3a4d4f9dbb9dadcad97467785490e9b377f7cb53
parent2feb4a7bb01c5e98763a62fb0bd64edf933c95de
LU-8130 libcfs: don't use radix tree for xarray

For newer kernels the radix tree is totally based on Xarray. For Lustre
support for RHEL7 we backported Xarray but it still was using the
radix tree. Their is a mismatch between what the radix tree expects
and using a struct xa_node when allocating and freeing memory. Instead
abandon all use of the radix tree with Xarray. We use our own private
kmem cache which is based on radix tree but it uses xa_node.

Test-Parameters: trivial
Fixes: 84e12028be9a ("LU-9859 libcfs: add support for Xarray")
Change-Id: I87607aa0e55a4aca039f2fef5a76fbff0bedd9b3
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51840
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/libcfs/linux/linux-prim.c
libcfs/libcfs/linux/xarray.c