Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752148Ab3IIEHV (ORCPT ); Mon, 9 Sep 2013 00:07:21 -0400 Received: from mail-ie0-f179.google.com ([209.85.223.179]:64825 "EHLO mail-ie0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751663Ab3IIEHT (ORCPT ); Mon, 9 Sep 2013 00:07:19 -0400 MIME-Version: 1.0 In-Reply-To: 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> <20130909000300.GH13318@ZenIV.linux.org.uk> From: Ramkumar Ramachandra Date: Mon, 9 Sep 2013 09:36:39 +0530 Message-ID: Subject: Re: [PATCH v7 1/4] spinlock: A new lockref structure for lockless update of refcount To: Linus Torvalds Cc: Al Viro , Ingo Molnar , Benjamin Herrenschmidt , Waiman Long , 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: 1374 Lines: 26 Linus Torvalds wrote: > On Sun, Sep 8, 2013 at 5:03 PM, Al Viro wrote: >> >> There's one exception - basically, we decide to put duplicates of >> reference(s) we hold into (a bunch of) structures being created. If >> we decide that we'd failed and need to roll back, the structures >> need to be taken out of whatever lists, etc. they'd been already >> put on and references held in them - dropped. That removal gets done >> under a spinlock. Sure, we can string those structures on some kind >> of temp list, drop the spinlock and do dput() on everything in there, >> but it's much more convenient to just free them as we are evicting >> them, doing dput() as we go. Which is safe, since we are still have >> the references used to create these buggers pinned down. Dropping the spinlocks means more cores; unfortunately, a quad-core seems to be the limit. Users must divide their time between reading history and contributing to the present: some amount of persistent data is a must on every user's machine. Pixel seems to be heading in the wrong direction: that's what is stressing us out. Ram -- 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/