Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285020
b: refs/heads/master
c: 029aeff
h: refs/heads/master
v: v3
  • Loading branch information
Laura Abbott authored and Catalin Marinas committed Dec 2, 2011
1 parent 2ccd755 commit fb4ef1f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f528f0b8e53d73b18be71e96693cfab9322f33c7
refs/heads/master: 029aeff5db879afd7760f11214b6fea45f76b58e
2 changes: 1 addition & 1 deletion trunk/lib/Kconfig.debug
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ config SLUB_STATS

config DEBUG_KMEMLEAK
bool "Kernel memory leak detector"
depends on DEBUG_KERNEL && EXPERIMENTAL && !MEMORY_HOTPLUG && \
depends on DEBUG_KERNEL && EXPERIMENTAL && \
(X86 || ARM || PPC || MIPS || S390 || SPARC64 || SUPERH || MICROBLAZE || TILE)

select DEBUG_FS
Expand Down
6 changes: 4 additions & 2 deletions trunk/mm/kmemleak.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@

#include <linux/kmemcheck.h>
#include <linux/kmemleak.h>
#include <linux/memory_hotplug.h>

/*
* Kmemleak configuration and common defines.
Expand Down Expand Up @@ -1292,9 +1293,9 @@ static void kmemleak_scan(void)
#endif

/*
* Struct page scanning for each node. The code below is not yet safe
* with MEMORY_HOTPLUG.
* Struct page scanning for each node.
*/
lock_memory_hotplug();
for_each_online_node(i) {
pg_data_t *pgdat = NODE_DATA(i);
unsigned long start_pfn = pgdat->node_start_pfn;
Expand All @@ -1313,6 +1314,7 @@ static void kmemleak_scan(void)
scan_block(page, page + 1, NULL, 1);
}
}
unlock_memory_hotplug();

/*
* Scanning the task stacks (may introduce false negatives).
Expand Down

0 comments on commit fb4ef1f

Please sign in to comment.