Messages in this thread | | | Date | Mon, 16 Feb 2015 22:15:03 +0300 | From | Stefan Strogin <> | Subject | Re: [PATCH 1/4] mm: cma: add currently allocated CMA buffers list to debugfs |
| |
Hello,
On 13/02/15 06:10, Joonsoo Kim wrote: > On Fri, Feb 13, 2015 at 01:15:41AM +0300, Stefan Strogin wrote: > > This linear searching make cma_release() slow if we have many allocated > cma buffers. It wouldn't cause any problem? > > Thanks. > >
On my board the usual number of CMA buffers is about 20, and releasing a buffer isn't a very frequent operation. But if there could be systems with much more CMA buffers and/or frequent allocating/releasing them, maybe it would be useful to convert buffers list to rb_trees?
| |