From patchwork Tue Feb 13 13:22:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 128233 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp4249665ljc; Tue, 13 Feb 2018 05:23:16 -0800 (PST) X-Google-Smtp-Source: AH8x226blVxPUMApoIE7hqi/wOI1VZV07saLvcuI0GLnk0QLJGkpp1o4+5CZ0LqYFlIAVmRDvYzp X-Received: by 2002:a17:902:4c88:: with SMTP id b8-v6mr1136732ple.233.1518528195938; Tue, 13 Feb 2018 05:23:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518528195; cv=none; d=google.com; s=arc-20160816; b=rbX4XATPctsMDT7Nj6rulHwkXDHnq1u4eLnCdUwHqTjHu/UrZJ3R8+ssNQGEILw0Cy eaG1f9bXplJCdbNnVfrL1VKMp2CxPa1SF530kElG/3QtCv5E1UEfvZQ/1iel3CPBSKQ3 /z9Wh/usYvvzr5mSFVzuJjTbrWImsoobeddbAvV+Wx/FeZzMwa9/8DRjdwm0K3FCC/pA 5ty7vER5F/D4VvUgASaBf7T+kLMdA9It9c+/PXRmF+JipuDkn45qjQqZlSP5ouo/Nzwz TW4xbYsZyldZDLYKA94GhwdLBCzh/n8GrLYmlv2wjho1E6y3GiLfDKtfwPo65l8M78SI fblw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=V9Rr0+DzZjFCVsPWzlkqRBIE/isFOyc/fBvwlUa0gSk=; b=xtjOidY4WU/UdJ6U6D1kgo4bFLNO20vYhQXOpeDKA38e0GZhGCFDQpIxm0IM20lLEW s2vOs1UB3kxgxnwQOneF6l2FrOYK95SEzMiieB6gIrE7c0yxKgSlckq/vZHBuRFlhChy 2YF+I1+o2RI0dsmyt9t9ABJr5UaD88n2XV7G49CpKiHb//049UyhQWt8uZ6twyg59Ofi f2ATIpkwzF3wmoE948D3XIX4bWXBxYxcM7WN+l24flysatPtnNd9TnSH9DDW0qbnhohz yFUYx/3SPEvLpvm6Q6YND94laRIxnnvF/oijYBMXrXxHgq7eq12BbpR2TEE9meEIXyVd KeFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h6-v6si1400595pln.198.2018.02.13.05.23.15; Tue, 13 Feb 2018 05:23:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935356AbeBMNXA (ORCPT + 27 others); Tue, 13 Feb 2018 08:23:00 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:57556 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935219AbeBMNW5 (ORCPT ); Tue, 13 Feb 2018 08:22:57 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D2DC01529; Tue, 13 Feb 2018 05:22:56 -0800 (PST) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A3FED3F487; Tue, 13 Feb 2018 05:22:56 -0800 (PST) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 48F151AE5430; Tue, 13 Feb 2018 13:23:03 +0000 (GMT) From: Will Deacon To: linux-kernel@vger.kernel.org Cc: peterz@infradead.org, mingo@redhat.com, Will Deacon Subject: [PATCH 0/2] A couple of qspinlock fixes Date: Tue, 13 Feb 2018 13:22:55 +0000 Message-Id: <1518528177-19169-1-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Acked-by: Peter Zijlstra (Intel)