From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f193.google.com ([209.85.220.193]:33297 "EHLO mail-qk0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753715AbcFAOol (ORCPT ); Wed, 1 Jun 2016 10:44:41 -0400 Received: by mail-qk0-f193.google.com with SMTP id q184so2393537qkf.0 for ; Wed, 01 Jun 2016 07:44:40 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20160601135209.GG14480@ZenIV.linux.org.uk> References: <87shwy8b38.fsf@thinkpad.rath.org> <20160531174416.GC14480@ZenIV.linux.org.uk> <20160531202929.GD14480@ZenIV.linux.org.uk> <20160601135209.GG14480@ZenIV.linux.org.uk> Date: Wed, 1 Jun 2016 16:44:40 +0200 Message-ID: Subject: Re: [fuse-devel] Changes in 4.7. From: Stef Bon To: Al Viro Cc: "fuse-devel@lists.sourceforge.net" , "linux-fsdevel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-fsdevel-owner@vger.kernel.org List-ID: 2016-06-01 15:52 GMT+02:00 Al Viro : > For regular files, the kernel serializes read()/write()/lseek() done on > descriptors aliasing each other. Now it does the same for getdents()/lseek() > of directories. > > From the filesystem point of view, you might see two getdents() called > in parallel only if their results should be unaffected by the order of > operations. Ah right! Now I understand. Thanks a lot for your explanation! Of course when a second descriptor refers the same object, operations like read/lseek have to be serialized. If not strange things will happen. I was thinking on a totally different level. Stef