Skip to content
Snippets Groups Projects
Select Git revision
  • 59ecbbe7b31cd2d86ff9a9f461a00f7e7533aedc
  • master default
  • android-container
  • nanopc-t4
  • for-kernelci
  • WIP-syscall
  • v4.16-rc5
  • v4.16-rc4
  • v4.16-rc3
  • v4.16-rc2
  • v4.16-rc1
  • v4.15
  • v4.15-rc9
  • v4.15-rc8
  • v4.15-rc7
  • v4.15-rc6
  • v4.15-rc5
  • v4.15-rc4
  • v4.15-rc3
  • v4.15-rc2
  • v4.15-rc1
  • v4.14
  • v4.14-rc8
  • v4.14-rc7
  • v4.14-rc6
  • v4.14-rc5
26 results

compiler.h

  • Will Deacon's avatar
    59ecbbe7
    locking/barriers: Kill lockless_dereference() · 59ecbbe7
    Will Deacon authored
    
    lockless_dereference() is a nice idea, but it gained little traction in
    kernel code since its introduction three years ago. This is partly
    because it's a pain to type, but also because using READ_ONCE() instead
    has worked correctly on all architectures apart from Alpha, which is a
    fully supported but somewhat niche architecture these days.
    
    Now that READ_ONCE() has been upgraded to contain an implicit
    smp_read_barrier_depends() and the few callers of lockless_dereference()
    have been converted, we can remove lockless_dereference() altogether.
    
    Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Link: http://lkml.kernel.org/r/1508840570-22169-5-git-send-email-will.deacon@arm.com
    
    
    Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
    59ecbbe7
    History
    locking/barriers: Kill lockless_dereference()
    Will Deacon authored
    
    lockless_dereference() is a nice idea, but it gained little traction in
    kernel code since its introduction three years ago. This is partly
    because it's a pain to type, but also because using READ_ONCE() instead
    has worked correctly on all architectures apart from Alpha, which is a
    fully supported but somewhat niche architecture these days.
    
    Now that READ_ONCE() has been upgraded to contain an implicit
    smp_read_barrier_depends() and the few callers of lockless_dereference()
    have been converted, we can remove lockless_dereference() altogether.
    
    Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Link: http://lkml.kernel.org/r/1508840570-22169-5-git-send-email-will.deacon@arm.com
    
    
    Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>