Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758495AbaKUPGx (ORCPT ); Fri, 21 Nov 2014 10:06:53 -0500 Received: from mail-ie0-f178.google.com ([209.85.223.178]:46535 "EHLO mail-ie0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754269AbaKUPGt (ORCPT ); Fri, 21 Nov 2014 10:06:49 -0500 From: Pranith Kumar To: Herbert Xu , "David S. Miller" , Cristian Stoica , Horia Geanta , Ruchika Gupta , Michael Neuling , Wolfram Sang , linux-crypto@vger.kernel.org (open list:CRYPTO API), linux-kernel@vger.kernel.org (open list), Vinod Koul , Dan Williams , Bartlomiej Zolnierkiewicz , Kyungmin Park , =?UTF-8?q?Manuel=20Sch=C3=B6lling?= , Dave Jiang , Rashika , dmaengine@vger.kernel.org (open list:DMA GENERIC OFFLO...), "K. Y. Srinivasan" , Haiyang Zhang , devel@linuxdriverproject.org (open list:Hyper-V CORE AND...), Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Tejun Heo , Christoph Lameter , Peter Zijlstra , Paul Mackerras , Ingo Molnar , Arnaldo Carvalho de Melo , Kees Cook , Andy Lutomirski , Will Drewry , Andrew Morton , Joonsoo Kim , Naoya Horiguchi , =?UTF-8?q?J=C3=A9r=C3=B4me=20Glisse?= , "Kirill A. Shutemov" , Hugh Dickins , NeilBrown , Joerg Roedel , Sasha Levin , Paul McQuade , linux-mm@kvack.org (open list:MEMORY MANAGEMENT), netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org (open list:NETWORKING [IPv4/...) Subject: [PATCH v2 0/9] Replace smp_read_barrier_depends() with lockless_derefrence() Date: Fri, 21 Nov 2014 10:05:54 -0500 Message-Id: <1416582363-20661-1-git-send-email-bobby.prani@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Recently lockless_dereference() was added which can be used in place of hard-coding smp_read_barrier_depends(). http://lkml.iu.edu/hypermail/linux/kernel/1410.3/04561.html The following series tries to do this. There are still some hard-coded locations which I was not sure how to replace with. I will send in separate patches/questions regarding them. Pranith Kumar (9): doc: memory-barriers.txt: Document use of lockless_dereference() drivers: dma: Replace smp_read_barrier_depends() with lockless_dereference() dcache: Replace smp_read_barrier_depends() with lockless_dereference() hyperv: Replace smp_read_barrier_depends() with lockless_dereference() percpu: Replace smp_read_barrier_depends() with lockless_dereference() perf: Replace smp_read_barrier_depends() with lockless_dereference() seccomp: Replace smp_read_barrier_depends() with lockless_dereference() task_work: Replace smp_read_barrier_depends() with lockless_dereference() netfilter: Replace smp_read_barrier_depends() with lockless_dereference() Documentation/memory-barriers.txt | 4 ++-- drivers/dma/ioat/dma_v2.c | 3 +-- drivers/dma/ioat/dma_v3.c | 3 +-- fs/dcache.c | 7 ++----- include/linux/hyperv.h | 9 ++++----- include/linux/percpu-refcount.h | 4 +--- kernel/events/core.c | 3 +-- kernel/events/uprobes.c | 8 ++++---- kernel/seccomp.c | 7 +++---- kernel/task_work.c | 3 +-- net/ipv4/netfilter/arp_tables.c | 3 +-- net/ipv4/netfilter/ip_tables.c | 3 +-- net/ipv6/netfilter/ip6_tables.c | 3 +-- 13 files changed, 23 insertions(+), 37 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/