Re: [PATCH 6/8] Pmalloc selftest

2018-03-24 Thread Igor Stoppa
On 14/03/18 14:25, Matthew Wilcox wrote: > On Tue, Mar 13, 2018 at 11:45:52PM +0200, Igor Stoppa wrote: >> Add basic self-test functionality for pmalloc. > > Here're some additional tests for your test-suite: > > for (i = 1; i; i *= 2) > pzalloc(pool, i - 1, GFP_KERNEL); >

Re: [PATCH 6/8] Pmalloc selftest

2018-03-14 Thread Matthew Wilcox
On Tue, Mar 13, 2018 at 11:45:52PM +0200, Igor Stoppa wrote: > Add basic self-test functionality for pmalloc. Here're some additional tests for your test-suite: for (i = 1; i; i *= 2) pzalloc(pool, i - 1, GFP_KERNEL);

[PATCH 6/8] Pmalloc selftest

2018-03-13 Thread Igor Stoppa
Add basic self-test functionality for pmalloc. The testing is introduced as early as possible, right after the main dependency, genalloc, has passed successfully, so that it can help diagnosing failures in pmalloc users. Signed-off-by: Igor Stoppa --- include/linux/test_pmalloc.h | 24 + i