On Oct 07, 2024 / 13:37, Bart Van Assche wrote: > Since commit 4c39529663b9 ("slab: Warn on duplicate cache names when > DEBUG_VM=y"), slab complains about duplicate cache names. Hence this > patch. The approach is as follows: > - Maintain an xarray with the slab size as index and a reference count > and a kmem_cache pointer as contents. Use srpt-${slab_size} as kmem > cache name. > - Use 512-byte alignment for all slabs instead of only for some of the > slabs. > - Increment the reference count instead of calling kmem_cache_create(). > - Decrement the reference count instead of calling kmem_cache_destroy(). > > Reported-by: Shinichiro Kawasaki <shinichiro.kawasaki@xxxxxxx> > Closes: https://lore.kernel.org/linux-block/xpe6bea7rakpyoyfvspvin2dsozjmjtjktpph7rep3h25tv7fb@ooz4cu5z6bq6/ > Cc: Zhu Yanjun <yanjun.zhu@xxxxxxxxx> > Suggested-by: Jason Gunthorpe <jgg@xxxxxxxxxx> > Fixes: 5dabcd0456d7 ("RDMA/srpt: Add support for immediate data") > Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx> Thank you for the fix work. I tested this v2 patch also and confirmed that it avoids the failures. I observed no regression. Looks good. Tested-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@xxxxxxx>