From patchwork Tue Oct 24 10:22:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 116930 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp5632179qgn; Tue, 24 Oct 2017 03:22:55 -0700 (PDT) X-Google-Smtp-Source: ABhQp+QzdtEZAksumTMthlasqO6aLpcjXCyfyHMlwYkcr9ZrUGq2sD+m+yZt0wJIsyuvOio1sJk+ X-Received: by 10.84.232.138 with SMTP id i10mr12944272plk.104.1508840575640; Tue, 24 Oct 2017 03:22:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508840575; cv=none; d=google.com; s=arc-20160816; b=VORr4MpDNoyliPevgPhUBJ9jCtC7nkMmvOhfw9J72aLMXO5Fa84Q43e5dozNMif5KT T2OpQENGszhGNesXw+YRhvmwbcf+qa/QeUBZDT481/bcc9jD1CPfohBF945HgCKZciWp s50S4qwBMj6QrEkqlQW8J81nRM5631saWN9Ngz2Wv9a3KnYZuwBybTknGgSq0Nzk2MQ+ B4bqpldmSilW/KJOhmF9k+6ekgwYvffNkhjI7vT8hguKKP/dTDcVJj84w7oMB5W0R/cI rZs3vsK4+uB72GTlQGRSHHrX6MyJhRFK0yLxTdZgZmYXJ5TZqbUfFtLYDN4HOtJDcQLg NHFg== 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=vFqcCy7mRklJr41MK6IvCPOiimoXRDqHfYpuPKfCdKY=; b=ysdkh86TvCSLq+qdDZddOHcpfNEwe9QN1EQ0sNFiENgoLJG86lSby8blZOOz+uRtkM UBX+p+u43BwFaw/kMIUO9n/xRdVsDXyFdRlbORwrCR99emTpV0wMJGaiSk+MVlfCxG5O F+iSplnmrN6MLbXFh4dNzS7JbEM5dl8lzEOVazggCXHECWBU0sI4L6pjyeS1RPdkHO1f bwK7NxJyUKZb2oH46smUlR+K8SLH5gecAtMh2vXvrwprrE/csgG7wDqjsq/WiWyxUXho oCNMCbe9GG7kaNrrljB/8FX1XScmVfjy3lQFcJ7zaVfmyesqFi2clrgt7SHePJrbuCIh NnLA== 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 a3si5241026pla.160.2017.10.24.03.22.55; Tue, 24 Oct 2017 03:22:55 -0700 (PDT) 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 S932556AbdJXKWy (ORCPT + 27 others); Tue, 24 Oct 2017 06:22:54 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:53016 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932282AbdJXKWu (ORCPT ); Tue, 24 Oct 2017 06:22:50 -0400 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 85A0A80D; Tue, 24 Oct 2017 03:22:50 -0700 (PDT) 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 57B3D3F25D; Tue, 24 Oct 2017 03:22:50 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id DAB711AE319C; Tue, 24 Oct 2017 11:22:50 +0100 (BST) From: Will Deacon To: mingo@kernel.org Cc: linux-kernel@vger.kernel.org, Will Deacon Subject: [PATCH v2 0/5] Get rid of lockless_dereference() Date: Tue, 24 Oct 2017 11:22:45 +0100 Message-Id: <1508840570-22169-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 Ingo, Paul, Here's another spin of the patches removing lockless_dereference(), taking into account Ingo's review comments. Thanks, Will --->8 Will Deacon (5): linux/compiler.h: Split into compiler.h and compiler_types.h locking/barriers: Add implicit smp_read_barrier_depends() to READ_ONCE() locking/barriers: Convert users of lockless_dereference() to READ_ONCE() locking/barriers: Kill lockless_dereference() alpha: atomics: Add smp_read_barrier_depends() to release/relaxed atomics Documentation/memory-barriers.txt | 12 - .../translations/ko_KR/memory-barriers.txt | 12 - arch/alpha/include/asm/atomic.h | 13 + arch/arm/include/asm/ptrace.h | 3 +- arch/sparc/include/asm/ptrace.h | 1 + arch/um/include/shared/init.h | 2 +- arch/x86/events/core.c | 2 +- arch/x86/include/asm/mmu_context.h | 4 +- arch/x86/kernel/ldt.c | 2 +- drivers/md/dm-mpath.c | 20 +- fs/dcache.c | 4 +- fs/overlayfs/ovl_entry.h | 2 +- fs/overlayfs/readdir.c | 2 +- include/linux/compiler-clang.h | 2 +- include/linux/compiler-gcc.h | 2 +- include/linux/compiler-intel.h | 2 +- include/linux/compiler.h | 286 +-------------------- include/linux/compiler_types.h | 274 ++++++++++++++++++++ include/linux/linkage.h | 2 +- include/linux/rculist.h | 4 +- include/linux/rcupdate.h | 4 +- include/uapi/linux/stddef.h | 2 +- kernel/events/core.c | 4 +- kernel/seccomp.c | 2 +- kernel/task_work.c | 2 +- mm/slab.h | 2 +- scripts/headers_install.sh | 2 +- 27 files changed, 327 insertions(+), 342 deletions(-) create mode 100644 include/linux/compiler_types.h -- 2.1.4