Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756042Ab3H3UnO (ORCPT ); Fri, 30 Aug 2013 16:43:14 -0400 Received: from mail-ve0-f177.google.com ([209.85.128.177]:53968 "EHLO mail-ve0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755288Ab3H3UnM (ORCPT ); Fri, 30 Aug 2013 16:43:12 -0400 MIME-Version: 1.0 In-Reply-To: <5220FD51.2010709@hp.com> References: <1375758759-29629-1-git-send-email-Waiman.Long@hp.com> <1375758759-29629-2-git-send-email-Waiman.Long@hp.com> <1377751465.4028.20.camel@pasglop> <20130829070012.GC27322@gmail.com> <52200DAE.2020303@hp.com> <5220E56A.80603@hp.com> <5220F090.5050908@hp.com> <5220FD51.2010709@hp.com> Date: Fri, 30 Aug 2013 13:43:11 -0700 X-Google-Sender-Auth: B6T5-T7wDzkGg0MBbGcxw3tIzRM Message-ID: Subject: Re: [PATCH v7 1/4] spinlock: A new lockref structure for lockless update of refcount From: Linus Torvalds To: Waiman Long Cc: Ingo Molnar , Benjamin Herrenschmidt , Alexander Viro , Jeff Layton , Miklos Szeredi , Ingo Molnar , Thomas Gleixner , linux-fsdevel , Linux Kernel Mailing List , Peter Zijlstra , Steven Rostedt , Andi Kleen , "Chandramouleeswaran, Aswin" , "Norton, Scott J" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 741 Lines: 19 On Fri, Aug 30, 2013 at 1:15 PM, Waiman Long wrote: > > The prepend_path() isn't all due to getcwd. The correct profile should be Ugh. I really think that prepend_path() should just be rewritten to run entirely under RCU. Then we can remove *all* the stupid locking, and replace it with doing a read-lock on the rename sequence count, and repeating if requited. That shouldn't even be hard to do, it just requires mindless massaging and being careful. Linus -- 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/