Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756973Ab3IAW6f (ORCPT ); Sun, 1 Sep 2013 18:58:35 -0400 Received: from mail-ve0-f177.google.com ([209.85.128.177]:38111 "EHLO mail-ve0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754859Ab3IAW6d (ORCPT ); Sun, 1 Sep 2013 18:58:33 -0400 MIME-Version: 1.0 In-Reply-To: <20130901224459.GW13318@ZenIV.linux.org.uk> References: <20130901212355.GU13318@ZenIV.linux.org.uk> <20130901223521.GV13318@ZenIV.linux.org.uk> <20130901224459.GW13318@ZenIV.linux.org.uk> Date: Sun, 1 Sep 2013 15:58:32 -0700 X-Google-Sender-Auth: uWd7qt_TH1JSPB7ajv7TlAAFLHc Message-ID: Subject: Re: [PATCH v7 1/4] spinlock: A new lockref structure for lockless update of refcount From: Linus Torvalds To: Al Viro Cc: Sedat Dilek , Waiman Long , Ingo Molnar , Benjamin Herrenschmidt , 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: 1167 Lines: 28 On Sun, Sep 1, 2013 at 3:44 PM, Al Viro wrote: > > GRRR... I see something else: > void file_sb_list_del(struct file *file) > { > if (!list_empty(&file->f_u.fu_list)) { > lg_local_lock_cpu(&files_lglock, file_list_cpu(file)); > list_del_init(&file->f_u.fu_list); > lg_local_unlock_cpu(&files_lglock, file_list_cpu(file)); > } > } > will cheerfully cause cross-CPU traffic. If that's what is going on, the > earlier patch I've sent (not putting non-regulars and files opened r/o > on ->s_list) should reduce the cacheline bouncing on that cacheline. Hmm. That might indeed be a bad sources of cross-cpu bouncing on some loads, but the load I test doesn't actually open any files. It just does "stat()" on a filename. So no "struct file *" anywhere for me..It really seems to be vfsmount_lock itself somehow. 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/