[patch 1/5] vmalloc: do not check for freed locks on user maps

From: Thomas Gleixner
Date: Wed Mar 05 2008 - 11:04:54 EST


User maps do not contain kernel internal objects. No need to check
them.

Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Acked-by: Ingo Molnar <mingo@xxxxxxx>
---
mm/vmalloc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Index: linux-2.6/mm/vmalloc.c
===================================================================
--- linux-2.6.orig/mm/vmalloc.c
+++ linux-2.6/mm/vmalloc.c
@@ -382,7 +382,8 @@ static void __vunmap(const void *addr, i
return;
}

- debug_check_no_locks_freed(addr, area->size);
+ if (!(area->flags & VM_USERMAP))
+ debug_check_no_locks_freed(addr, area->size);

if (deallocate_pages) {
int i;

--

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/