Re: [PATCH v3 3/3] mm: cma: release trigger

2015-01-29 Thread Sasha Levin
On 01/29/2015 02:51 AM, Joonsoo Kim wrote: > On Tue, Jan 27, 2015 at 09:22:57PM -0500, Sasha Levin wrote: >> > +static int cma_free_mem(struct cma *cma, int count) >> > +{ >> > + struct cma_mem *mem = NULL; >> > + >> > + while (count) { >> > + mem = cma_get_entry_from_list(cma); >> > +

Re: [PATCH v3 3/3] mm: cma: release trigger

2015-01-29 Thread Sasha Levin
On 01/29/2015 02:51 AM, Joonsoo Kim wrote: On Tue, Jan 27, 2015 at 09:22:57PM -0500, Sasha Levin wrote: +static int cma_free_mem(struct cma *cma, int count) +{ + struct cma_mem *mem = NULL; + + while (count) { + mem = cma_get_entry_from_list(cma); + if (mem ==

Re: [PATCH v3 3/3] mm: cma: release trigger

2015-01-28 Thread Joonsoo Kim
On Tue, Jan 27, 2015 at 09:22:57PM -0500, Sasha Levin wrote: > Provides a userspace interface to trigger a CMA release. > > Usage: > > echo [pages] > free > > This would provide testing/fuzzing access to the CMA release paths. > > Signed-off-by: Sasha Levin > --- > mm/cma_debug.c |

Re: [PATCH v3 3/3] mm: cma: release trigger

2015-01-28 Thread Joonsoo Kim
On Tue, Jan 27, 2015 at 09:22:57PM -0500, Sasha Levin wrote: Provides a userspace interface to trigger a CMA release. Usage: echo [pages] free This would provide testing/fuzzing access to the CMA release paths. Signed-off-by: Sasha Levin sasha.le...@oracle.com ---

[PATCH v3 3/3] mm: cma: release trigger

2015-01-27 Thread Sasha Levin
Provides a userspace interface to trigger a CMA release. Usage: echo [pages] > free This would provide testing/fuzzing access to the CMA release paths. Signed-off-by: Sasha Levin --- mm/cma_debug.c | 56 1 file changed, 56

[PATCH v3 3/3] mm: cma: release trigger

2015-01-27 Thread Sasha Levin
Provides a userspace interface to trigger a CMA release. Usage: echo [pages] free This would provide testing/fuzzing access to the CMA release paths. Signed-off-by: Sasha Levin sasha.le...@oracle.com --- mm/cma_debug.c | 56