Re: [PATCH] mm/vmalloc: use rb_tree instead of list for vread() lookups

2021-02-08 Thread Uladzislau Rezki
On Mon, Feb 08, 2021 at 03:53:03PM +, Serapheim Dimitropoulos wrote: > vread() has been linearly searching vmap_area_list for looking up > vmalloc areas to read from. These same areas are also tracked by > a rb_tree (vmap_area_root) which offers logarithmic lookup. > > This patch modifies

[PATCH] mm/vmalloc: use rb_tree instead of list for vread() lookups

2021-02-08 Thread Serapheim Dimitropoulos
vread() has been linearly searching vmap_area_list for looking up vmalloc areas to read from. These same areas are also tracked by a rb_tree (vmap_area_root) which offers logarithmic lookup. This patch modifies vread() to use the rb_tree structure instead of the list and the speedup for heavy