Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have encountered the following problem when spawn multi thread with rdma.
it seem that memory allocated by jemalloc does not meet arena requirements(request memory from arena 18, but get memory in arena 17), then the checks of [lookup_raw_mr](https://github.com/datenlord/async-rdma/blob/033a056fd3304a601d386a56ab5f4b8808c8bd33/src/mr_allocator.rs#L432] don't pass.
So maybe we should add MALLOCX_TCACHE_NONE flag to disable tcache when using mallocx. (Maybe it is better to set opt.tcache to using mallctl?)
Besides, I add is_write for QueuePairOps, there is no need to acquire write lock of inner for send.