From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753392AbYK0KKo (ORCPT ); Thu, 27 Nov 2008 05:10:44 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752434AbYK0KKd (ORCPT ); Thu, 27 Nov 2008 05:10:33 -0500 Received: from bombadil.infradead.org ([18.85.46.34]:55146 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751125AbYK0KKc (ORCPT ); Thu, 27 Nov 2008 05:10:32 -0500 Date: Thu, 27 Nov 2008 05:10:23 -0500 From: Christoph Hellwig To: Eric Dumazet Cc: Christoph Hellwig , Ingo Molnar , David Miller , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, kernel-testers@vger.kernel.org, Mike Galbraith , Peter Zijlstra , Linux Netdev List , Christoph Lameter Subject: Re: [PATCH 6/6] fs: Introduce kern_mount_special() to mount special vfs Message-ID: <20081127101023.GA1454@infradead.org> References: <49267694.1030506@cosmosbay.com> <20081121.010508.40225532.davem@davemloft.net> <4926AEDB.10007@cosmosbay.com> <4926D022.5060008@cosmosbay.com> <20081121152148.GA20388@elte.hu> <4926D39D.9050603@cosmosbay.com> <20081121153453.GA23713@elte.hu> <492DDCAB.1070204@cosmosbay.com> <20081127095321.GE13860@infradead.org> <492E70B6.70108@cosmosbay.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <492E70B6.70108@cosmosbay.com> User-Agent: Mutt/1.5.18 (2008-05-17) 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 Thu, Nov 27, 2008 at 11:04:38AM +0100, Eric Dumazet wrote: > Hum.. we have a superblock flag already, but testing it in mntput()/mntget() > is going to be a litle bit expensive if we add a derefence ? > > if (mnt && mnt->mnt_sb->s_flags & MS_SPECIAL) { > ... > } Well, run a benchmark to see if it makes any difference. And when it does please always set the mount flag from the common mount code when it's set on the superblock, and document that this is the only valid way to set it. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH 6/6] fs: Introduce kern_mount_special() to mount special vfs Date: Thu, 27 Nov 2008 05:10:23 -0500 Message-ID: <20081127101023.GA1454@infradead.org> References: <49267694.1030506@cosmosbay.com> <20081121.010508.40225532.davem@davemloft.net> <4926AEDB.10007@cosmosbay.com> <4926D022.5060008@cosmosbay.com> <20081121152148.GA20388@elte.hu> <4926D39D.9050603@cosmosbay.com> <20081121153453.GA23713@elte.hu> <492DDCAB.1070204@cosmosbay.com> <20081127095321.GE13860@infradead.org> <492E70B6.70108@cosmosbay.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Christoph Hellwig , Ingo Molnar , David Miller , "Rafael J. Wysocki" , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, kernel-testers-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Mike Galbraith , Peter Zijlstra , Linux Netdev List , Christoph Lameter To: Eric Dumazet Return-path: Content-Disposition: inline In-Reply-To: <492E70B6.70108-fPLkHRcR87vqlBn2x/YWAg@public.gmane.org> Sender: kernel-testers-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: netdev.vger.kernel.org On Thu, Nov 27, 2008 at 11:04:38AM +0100, Eric Dumazet wrote: > Hum.. we have a superblock flag already, but testing it in mntput()/mntget() > is going to be a litle bit expensive if we add a derefence ? > > if (mnt && mnt->mnt_sb->s_flags & MS_SPECIAL) { > ... > } Well, run a benchmark to see if it makes any difference. And when it does please always set the mount flag from the common mount code when it's set on the superblock, and document that this is the only valid way to set it.