Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752638Ab3CCCT2 (ORCPT ); Sat, 2 Mar 2013 21:19:28 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35647 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751432Ab3CCCT1 (ORCPT ); Sat, 2 Mar 2013 21:19:27 -0500 Message-ID: <5132B2FB.4020004@redhat.com> Date: Sat, 02 Mar 2013 21:18:35 -0500 From: Rik van Riel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: Michel Lespinasse CC: Davidlohr Bueso , Linus Torvalds , "Vinod, Chegu" , "Low, Jason" , linux-tip-commits@vger.kernel.org, Peter Zijlstra , "H. Peter Anvin" , Andrew Morton , aquini@redhat.com, Ingo Molnar , Larry Woodman , Linux Kernel Mailing List , Steven Rostedt , Thomas Gleixner Subject: Re: [RFC PATCH 1/2] ipc: introduce obtaining a lockless ipc object References: <1362183400.3420.24.camel@buesod1.americas.hpqcorp.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 974 Lines: 25 On 03/01/2013 11:32 PM, Michel Lespinasse wrote: > I think it may be nicer to take the rcu read lock at the call site > rather than in ipc_obtain_object(), to make the rcu read lock/unlock > sites pair up more nicely. Either that or make an inline > ipc_release_object function that pairs up with ipc_obtain_object() and > just does an rcu_read_unlock(). I started on a patch series to untangle the IPC locking, so it will be a little more readable, and easier to maintain. It is a slower approach than Davidlohr's, as in, it will take a little longer to put a patch series together, but I hope it will be easier to debug... I hope to post a first iteration of the series by the middle of next week. -- All rights reversed -- 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/