]> git.baikalelectronics.ru Git - kernel.git/commit
Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/borntraeger...
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 21 Dec 2014 00:48:59 +0000 (16:48 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 21 Dec 2014 00:48:59 +0000 (16:48 -0800)
commitf6aac27d663101386dfe9cd9c336c8df952f4005
tree23d7f55df13cc5a0c072cc8a6f361f8e7050b825
parenteb9d9a3fbd94d3f0ed49a8cccfc0d5fc659a8e3e
parent37b596b68ca28a2d98c14211d9f074c2aa6bcb37
Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/borntraeger/linux

Pull ACCESS_ONCE cleanup preparation from Christian Borntraeger:
 "kernel: Provide READ_ONCE and ASSIGN_ONCE

  As discussed on LKML http://marc.info/?i=54611D86.4040306%40de.ibm.com
  ACCESS_ONCE might fail with specific compilers for non-scalar
  accesses.

  Here is a set of patches to tackle that problem.

  The first patch introduce READ_ONCE and ASSIGN_ONCE.  If the data
  structure is larger than the machine word size memcpy is used and a
  warning is emitted.  The next patches fix up several in-tree users of
  ACCESS_ONCE on non-scalar types.

  This does not yet contain a patch that forces ACCESS_ONCE to work only
  on scalar types.  This is targetted for the next merge window as Linux
  next already contains new offenders regarding ACCESS_ONCE vs.
  non-scalar types"

* tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/borntraeger/linux:
  s390/kvm: REPLACE barrier fixup with READ_ONCE
  arm/spinlock: Replace ACCESS_ONCE with READ_ONCE
  arm64/spinlock: Replace ACCESS_ONCE READ_ONCE
  mips/gup: Replace ACCESS_ONCE with READ_ONCE
  x86/gup: Replace ACCESS_ONCE with READ_ONCE
  x86/spinlock: Replace ACCESS_ONCE with READ_ONCE
  mm: replace ACCESS_ONCE with READ_ONCE or barriers
  kernel: Provide READ_ONCE and ASSIGN_ONCE
arch/mips/mm/gup.c
arch/s390/kvm/gaccess.c
arch/x86/include/asm/spinlock.h
mm/gup.c
mm/memory.c
mm/rmap.c