Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755283AbYAEAum (ORCPT ); Fri, 4 Jan 2008 19:50:42 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753709AbYAEAuf (ORCPT ); Fri, 4 Jan 2008 19:50:35 -0500 Received: from smtp2.linux-foundation.org ([207.189.120.14]:41529 "EHLO smtp2.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753332AbYAEAue (ORCPT ); Fri, 4 Jan 2008 19:50:34 -0500 Date: Fri, 4 Jan 2008 16:49:06 -0800 (PST) From: Linus Torvalds To: Arjan van de Ven cc: Ingo Molnar , Theodore Tso , Andi Kleen , Christoph Lameter , Willy Tarreau , Steven Rostedt , Peter Zijlstra , LKML , Andrew Morton , Christoph Hellwig , "Rafael J. Wysocki" Subject: Re: [patch] slub: provide /proc/slabinfo In-Reply-To: <20080104162705.44b61e9a@laptopd505.fenrus.org> Message-ID: References: <20071222221050.GA20753@1wt.eu> <20071223051241.GA4449@1wt.eu> <20071223141500.GB6430@one.firstfloor.org> <20071224034530.GB16658@thunk.org> <20071224233701.GB9784@kernel.org> <20071225033418.GA29199@one.firstfloor.org> <20080101124741.GH11776@mit.edu> <20080101162328.GC20426@elte.hu> <20080104162705.44b61e9a@laptopd505.fenrus.org> User-Agent: Alpine 1.00 (LFD 882 2007-12-20) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 881 Lines: 23 On Fri, 4 Jan 2008, Arjan van de Ven wrote: > > this is the part I'm not very thrilled about... at least on first sight > it looks like a user can now hold the read sem over system calls, and > for as long as it wants. No, you misunderstand how seq-files work. The start/stop sequence is done only overone single kernel buffer instance, not over the whole open/close (or even the copy to user space). It's expressly designed so that you can hold locks (including spinlocks etc), and will not do any blocking ops (well - your *callbacks* can you blocking ops, but the seq_file stuff itself won't) between start/stop. 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/