Fix 2 bugs in NFS-RDMA allocator, add a test for both

1) alloc() could add the region start into freelist instead of its free part
2) free() was merging freed buffers incorrectly both forward and backward
This commit is contained in:
Vitaliy Filippov
2026-06-19 02:08:41 +03:00
parent 4161f0bd01
commit 5248d7f324
3 changed files with 72 additions and 1 deletions
+5
View File
@@ -35,3 +35,8 @@ target_link_libraries(vitastor-nfs
vitastor_kv
${RDMACM_LIBRARIES}
)
# test_rdma_alloc
add_executable(test_rdma_alloc EXCLUDE_FROM_ALL test_rdma_alloc.cpp rdma_alloc.cpp)
add_dependencies(build_tests test_rdma_alloc)
add_test(NAME test_rdma_alloc COMMAND test_rdma_alloc)