mbox series

[0/2] A couple of qspinlock fixes

Message ID 1518528177-19169-1-git-send-email-will.deacon@arm.com
Headers show
Series A couple of qspinlock fixes | expand

Message

Will Deacon Feb. 13, 2018, 1:22 p.m. UTC
Hi all,

Here are a couple of fixes for qspinlock issues I've found by code
inspection whilst investigating the possibility of enabling this for
arm64. The first patch fixes a problem with unusual hardware re-ordering
whilst the second fixes a problem with unusual compiler re-ordering.

Cheers,

Will

--->8

Will Deacon (2):
  locking/qspinlock: Ensure node is initialised before updating
    prev->next
  locking/qspinlock: Ensure node->count is updated before initialising
    node

 kernel/locking/qspinlock.c | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

-- 
2.1.4

Comments

Peter Zijlstra Feb. 13, 2018, 1:45 p.m. UTC | #1
On Tue, Feb 13, 2018 at 01:22:55PM +0000, Will Deacon wrote:
> Hi all,

> 

> Here are a couple of fixes for qspinlock issues I've found by code

> inspection whilst investigating the possibility of enabling this for

> arm64. The first patch fixes a problem with unusual hardware re-ordering

> whilst the second fixes a problem with unusual compiler re-ordering.


Thanks Will!

Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>