Hi GuoRui.Yu",index_nowrap should be initialized to "index" here, and I will add this in v2.
Thank you for the patch! Perhaps something to improve:
654 spin_lock_irqsave(&area->lock, flags);
655 if (unlikely(nslots > mem->area_nslabs - area->used))
656 goto not_found;
657
658 slot_base = area_index * mem->area_nslabs;
659 index = wrap = wrap_area_index(mem, ALIGN(area->index, stride));
660
661 do {