From 4c38940aead064d7de6450442d7e1a9a4d3d2730 Mon Sep 17 00:00:00 2001 From: Dave Young Date: Wed, 23 Nov 2011 08:20:53 -0800 Subject: [PATCH] --- yaml --- r: 276029 b: refs/heads/master c: 67589c71456b0346500629967292dea3802230b6 h: refs/heads/master i: 276027: d2659946e890d2a273594e9242dbd409614263d9 v: v3 --- [refs] | 2 +- trunk/mm/percpu.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 4060f4375bb5..da23e976c591 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a855b84c3d8c73220d4d3cd392a7bee7c83de70e +refs/heads/master: 67589c71456b0346500629967292dea3802230b6 diff --git a/trunk/mm/percpu.c b/trunk/mm/percpu.c index 2473ff06dc76..3bb810a72006 100644 --- a/trunk/mm/percpu.c +++ b/trunk/mm/percpu.c @@ -978,6 +978,17 @@ bool is_kernel_percpu_address(unsigned long addr) * address. The caller is responsible for ensuring @addr stays valid * until this function finishes. * + * percpu allocator has special setup for the first chunk, which currently + * supports either embedding in linear address space or vmalloc mapping, + * and, from the second one, the backing allocator (currently either vm or + * km) provides translation. + * + * The addr can be tranlated simply without checking if it falls into the + * first chunk. But the current code reflects better how percpu allocator + * actually works, and the verification can discover both bugs in percpu + * allocator itself and per_cpu_ptr_to_phys() callers. So we keep current + * code. + * * RETURNS: * The physical address for @addr. */