linux-arch.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [GIT PULL membarrier/urgent] membarrier commits for 4.14
@ 2017-10-04 22:05 Paul E. McKenney
  2017-10-12 17:00 ` [GIT PULL v2 " Paul E. McKenney
  0 siblings, 1 reply; 12+ messages in thread
From: Paul E. McKenney @ 2017-10-04 22:05 UTC (permalink / raw)
  To: mingo
  Cc: mathieu.desnoyers, peterz, boqun.feng, ahh, maged.michael, gromer,
	avi, benh, paulus, mpe, davejwatson, stern, will.deacon, luto,
	mingo, viro, npiggin, linux-arch, linux-kernel

Hello, Ingo,

This urgent pull request contains three commits that fix a problem
that arose when designing requested extensions to sys_membarrier()
to allow JITs to efficiently flush old code from instruction caches.
Several potential algorithms are much less painful if the user register
intent to use this functionality early on, for example, before the process
spawns the second thread.  Registering at this time removes the need to
interrupt each and every thread in that process at the first expedited
sys_membarrier() system call.

However, if we let the current function out, then user programs might be
written without registration, which would make it more difficult to add
required registration after the fact.  Hence the late-in-merge-window
pull request.

These have been subject to 0day test robot and -next testing and
are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git urgent-for-mingo

for you to fetch changes up to 204a0fa1a3ecd9244869fa67608ad4fda232cba1:

  membarrier: Document scheduler barrier requirements (2017-10-04 11:02:18 -0700)

----------------------------------------------------------------
Mathieu Desnoyers (3):
      membarrier: Provide register expedited private command
      membarrier: selftest: Test private expedited cmd
      membarrier: Document scheduler barrier requirements

 MAINTAINERS                                        |   2 +
 arch/powerpc/Kconfig                               |   1 +
 arch/powerpc/include/asm/membarrier.h              |  43 ++++++++
 arch/powerpc/include/asm/thread_info.h             |   3 +
 arch/powerpc/kernel/Makefile                       |   2 +
 arch/powerpc/kernel/membarrier.c                   |  45 +++++++++
 arch/powerpc/mm/mmu_context.c                      |   7 ++
 arch/x86/mm/tlb.c                                  |   5 +
 fs/exec.c                                          |   1 +
 include/linux/mm_types.h                           |   3 +
 include/linux/sched/mm.h                           |  55 +++++++++++
 include/uapi/linux/membarrier.h                    |  23 +++--
 init/Kconfig                                       |   3 +
 kernel/fork.c                                      |   2 +
 kernel/sched/core.c                                |  47 +++++----
 kernel/sched/membarrier.c                          |  25 ++++-
 .../testing/selftests/membarrier/membarrier_test.c | 109 ++++++++++++++++++---
 17 files changed, 329 insertions(+), 47 deletions(-)
 create mode 100644 arch/powerpc/include/asm/membarrier.h
 create mode 100644 arch/powerpc/kernel/membarrier.c

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2017-10-13 16:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-04 22:05 [GIT PULL membarrier/urgent] membarrier commits for 4.14 Paul E. McKenney
2017-10-12 17:00 ` [GIT PULL v2 " Paul E. McKenney
2017-10-12 17:00   ` Paul E. McKenney
2017-10-13 16:12   ` [PATCH tip/sched/membarrier 1/5] membarrier: Provide register expedited private command Paul E. McKenney
2017-10-13 16:12     ` Paul E. McKenney
2017-10-13 16:12   ` [PATCH tip/sched/membarrier 2/5] membarrier: selftest: Test private expedited cmd Paul E. McKenney
2017-10-13 16:12     ` Paul E. McKenney
2017-10-13 16:12   ` [PATCH tip/sched/membarrier 3/5] membarrier: Document scheduler barrier requirements Paul E. McKenney
2017-10-13 16:12     ` Paul E. McKenney
2017-10-13 16:12   ` [PATCH tip/sched/membarrier 4/5] membarrier: Remove unused code for architectures without membarrier hooks Paul E. McKenney
2017-10-13 16:12     ` Paul E. McKenney
2017-10-13 16:12   ` [PATCH tip/sched/membarrier 5/5] Fix: membarrier: Handle CLONE_VM + !CLONE_THREAD correctly on powerpc Paul E. McKenney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).