From mboxrd@z Thu Jan 1 00:00:00 1970 From: mwjian@foxmail.com (=?utf-8?B?6ams5paH5YGl?=) Date: Tue, 7 Aug 2018 09:59:13 +0800 Subject: [PATCH] ARM: spinlock: avoid exclusive accesses on unlock() path In-Reply-To: References: Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi while one cpu is doing arch_spin_unlock,another cpu doing arch_spin_lock the first cpu's lock->tickets.owner++; may be over writed by the second's strex %2, %1, [%3]\n so the owner filed doesn't get increased. But i'm not sure about this, may be there are something i have missed. Thanks. ------------------ Original ------------------