Re: [PATCH] NoMoreModuleVmalloc - Try alloc_pages_exact before vmalloc, if fails do vmalloc

2014-07-16 Thread Rusty Russell
Lucas Tanure writes: > Hi Russell, > > I found that project > http://kernelnewbies.org/KernelProjects/NoMoreModuleVmalloc. > So I thought that doing first a alloc_pages_exact would be the goal. > The kernel/module.c doesn't need this task any more, or I just did in > the wrong way ? Hmm, that's

Re: [PATCH] NoMoreModuleVmalloc - Try alloc_pages_exact before vmalloc, if fails do vmalloc

2014-07-16 Thread Rusty Russell
Lucas Tanure tan...@linux.com writes: Hi Russell, I found that project http://kernelnewbies.org/KernelProjects/NoMoreModuleVmalloc. So I thought that doing first a alloc_pages_exact would be the goal. The kernel/module.c doesn't need this task any more, or I just did in the wrong way ?

Re: [PATCH] NoMoreModuleVmalloc - Try alloc_pages_exact before vmalloc, if fails do vmalloc

2014-07-14 Thread Lucas Tanure
Hi Russell, I found that project http://kernelnewbies.org/KernelProjects/NoMoreModuleVmalloc. So I thought that doing first a alloc_pages_exact would be the goal. The kernel/module.c doesn't need this task any more, or I just did in the wrong way ? Thanks -- Lucas Tanure +55 (19) 988176559 On

Re: [PATCH] NoMoreModuleVmalloc - Try alloc_pages_exact before vmalloc, if fails do vmalloc

2014-07-14 Thread Rusty Russell
Lucas Tanure writes: > Convert vmalloc() call to alloc_pages_exact(). If alloc_pages_exact() fails, > then fall back to vmalloc(). If the address is a vmalloc address, then > call vfree(), otherwise call free_pages_exact(). Hi Lucas, This patch is wrong. Firstly, you didn't list a

Re: [PATCH] NoMoreModuleVmalloc - Try alloc_pages_exact before vmalloc, if fails do vmalloc

2014-07-14 Thread Rusty Russell
Lucas Tanure tan...@linux.com writes: Convert vmalloc() call to alloc_pages_exact(). If alloc_pages_exact() fails, then fall back to vmalloc(). If the address is a vmalloc address, then call vfree(), otherwise call free_pages_exact(). Hi Lucas, This patch is wrong. Firstly, you

Re: [PATCH] NoMoreModuleVmalloc - Try alloc_pages_exact before vmalloc, if fails do vmalloc

2014-07-14 Thread Lucas Tanure
Hi Russell, I found that project http://kernelnewbies.org/KernelProjects/NoMoreModuleVmalloc. So I thought that doing first a alloc_pages_exact would be the goal. The kernel/module.c doesn't need this task any more, or I just did in the wrong way ? Thanks -- Lucas Tanure +55 (19) 988176559 On

[PATCH] NoMoreModuleVmalloc - Try alloc_pages_exact before vmalloc, if fails do vmalloc

2014-07-13 Thread Lucas Tanure
Convert vmalloc() call to alloc_pages_exact(). If alloc_pages_exact() fails, then fall back to vmalloc(). If the address is a vmalloc address, then call vfree(), otherwise call free_pages_exact(). Signed-off-by: Lucas Tanure --- kernel/module.c | 16 1 file changed, 12

[PATCH] NoMoreModuleVmalloc - Try alloc_pages_exact before vmalloc, if fails do vmalloc

2014-07-13 Thread Lucas Tanure
Convert vmalloc() call to alloc_pages_exact(). If alloc_pages_exact() fails, then fall back to vmalloc(). If the address is a vmalloc address, then call vfree(), otherwise call free_pages_exact(). Signed-off-by: Lucas Tanure tan...@linux.com --- kernel/module.c | 16 1 file