From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb0-f174.google.com ([209.85.213.174]:33988 "EHLO mail-yb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751143AbdFUQly (ORCPT ); Wed, 21 Jun 2017 12:41:54 -0400 Received: by mail-yb0-f174.google.com with SMTP id e201so44296758ybb.1 for ; Wed, 21 Jun 2017 09:41:54 -0700 (PDT) Date: Wed, 21 Jun 2017 11:36:31 -0400 From: Tejun Heo To: Greg Kroah-Hartman Cc: Christoph Hellwig , Linus Torvalds , linux-fsdevel@vger.kernel.org Subject: Re: odd sysfs find behavior, was: Re: [PATCH v6 00/10] Implement NVMe Namespace Descriptor Identification Message-ID: <20170621153631.GA5267@htj.duckdns.org> References: <20170616095837.GA14217@lst.de> <20170617120814.GA13236@lst.de> <20170618011250.GA1987@kroah.com> <20170618073249.GA25797@lst.de> <20170618073305.GB25797@lst.de> <20170618102020.GA28042@htj.duckdns.org> <20170618134336.GA32701@lst.de> <20170619175934.GB12062@htj.duckdns.org> <20170621144826.GB15646@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170621144826.GB15646@kroah.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Hello, On Wed, Jun 21, 2017 at 10:48:26PM +0800, Greg Kroah-Hartman wrote: > On Mon, Jun 19, 2017 at 01:59:34PM -0400, Tejun Heo wrote: > > So, looks like this is the debugfs automount mechanism changing nlinks > > across automounts and confusing find in the process. Greg? > > That's odd, is find racing with itself here? I don't really know how to > do anything about this in sysfs, as this should happen for any other > filesystem, right? I don't actually know why find gets confused over nlinks changing underneath it. Can't we also automount on the first stat(2) call? Thanks. -- tejun