[PATCH 0/2] A couple of qspinlock fixes

From: Will Deacon
Date: Tue Feb 13 2018 - 08:23:15 EST


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