From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751521Ab1ITO25 (ORCPT ); Tue, 20 Sep 2011 10:28:57 -0400 Received: from 173-166-109-252-newengland.hfc.comcastbusiness.net ([173.166.109.252]:38228 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751081Ab1ITO24 (ORCPT ); Tue, 20 Sep 2011 10:28:56 -0400 Date: Tue, 20 Sep 2011 10:28:43 -0400 From: Christoph Hellwig To: Srikar Dronamraju Cc: Christoph Hellwig , Peter Zijlstra , Steven Rostedt , Linux-mm , Arnaldo Carvalho de Melo , Linus Torvalds , Jonathan Corbet , Masami Hiramatsu , Hugh Dickins , Ananth N Mavinakayanahalli , Thomas Gleixner , Andi Kleen , Oleg Nesterov , Andrew Morton , Jim Keniston , Roland McGrath , LKML Subject: Re: [PATCH v5 3.1.0-rc4-tip 0/26] Uprobes patchset with perf probe support Message-ID: <20110920142843.GA9995@infradead.org> References: <20110920133401.GA28550@infradead.org> <20110920141204.GC6568@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110920141204.GC6568@linux.vnet.ibm.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 20, 2011 at 07:42:04PM +0530, Srikar Dronamraju wrote: > I could use any other inode/file/mapping based sleepable lock that is of > higher order than mmap_sem. Can you please let me know if we have > alternatives. Please do not overload unrelated locks for this, but add a specific one. There's two options: (a) add it to the inode (conditionally) (b) use global, hashed locks I think (b) is good enough as adding/removing probes isn't exactly the most critical fast path.