public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [GIT PULL] percpu fixes for 3.2-rc3
@ 2011-11-28 21:35 Tejun Heo
  0 siblings, 0 replies; only message in thread
From: Tejun Heo @ 2011-11-28 21:35 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel, Dave Young, Bob Liu

Hello, Linus.

Each percpu chunk contains units for each CPU which can be offset by
arbitrary amount (usually determined by how early mem gets allocated
for static percpu areas).

Way back, the offsets were always monotonically increasing and
first/last units were assumed to have the lowest and highest offsets.
These were used to determine cache flush ranges and map percpu to
physical addresses.

However, with embedded first chunk allocation, the assumption is no
longer true.  There's no relation between unit number and its offset,
which broke percpu -> physical translation.  The bug is rather serious
as it has remote chance of causing extremely obscure and difficult to
reproduce problems on archs which require vmalloc area flushing.

This pull includes fix for the above problem, a patch explaining why
phys addr translation is done the way it's done, and a trivial percpu
internal function rename patch which was sitting in my queue for too
long.

Please pull from the following git branch,

  git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu.git for-3.2-fixes

Bob Liu (1):
      percpu: rename pcpu_mem_alloc to pcpu_mem_zalloc

Dave Young (1):
      percpu: explain why per_cpu_ptr_to_phys() is more complicated than necessary

Tejun Heo (1):
      percpu: fix chunk range calculation

 mm/percpu-vm.c |   17 +++++++--------
 mm/percpu.c    |   62 ++++++++++++++++++++++++++++++++++++-------------------
 2 files changed, 48 insertions(+), 31 deletions(-)

Thanks.

--
tejun

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-11-28 21:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-28 21:35 [GIT PULL] percpu fixes for 3.2-rc3 Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox