Re: [PATCH v1 1/3] swiotlb: Use bitmap to track free slots

2022-06-28 Thread Ilpo Järvinen
On Tue, 28 Jun 2022, Chao Gao wrote: > Currently, each slot tracks the number of contiguous free slots starting > from itself. It helps to quickly check if there are enough contiguous > entries when dealing with an allocation request. But maintaining this > information can leads to some overhead.

[PATCH v1 1/3] swiotlb: Use bitmap to track free slots

2022-06-28 Thread Chao Gao
Currently, each slot tracks the number of contiguous free slots starting from itself. It helps to quickly check if there are enough contiguous entries when dealing with an allocation request. But maintaining this information can leads to some overhead. Specifically, if a slot is allocated/freed, pr