Received: by 10.223.176.5 with SMTP id f5csp565780wra; Fri, 9 Feb 2018 03:42:12 -0800 (PST) X-Google-Smtp-Source: AH8x224oGMUy2WoAPjne0cHCuvsc2n9RcfLigqnRkYfTwJ1X9fxH44Epftew0xPts3swuxIhAGkp X-Received: by 2002:a17:902:9005:: with SMTP id a5-v6mr2311001plp.251.1518176532233; Fri, 09 Feb 2018 03:42:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518176532; cv=none; d=google.com; s=arc-20160816; b=W3Z+WU4UkoZ6ykI2qdJplGUMKdnBXuHpk6XHJ12RbERkN+vZNprWejxFNLV0Jp+SID YV1WSHMSBC8alX9U5jbe+PP15g4GSiBykYnLGY4y8QUZZ9jPNlL3Em8fWEENPP+0pONr ekSz7YzwIjID6DeE1XE4K3fIymbemlI8xhfqCeQM69YkOcRX7sd1V7ZwuMUuCHalAfFL uKPCkGhxYf/ST2JQt4AEDNDp3rrn1KW9ODYM8F/5wwtiXI3tN7pGcfkiLOBFaQP6oROa HskzFySt0JL4lX3091glKfSJlzzRi5OKGFFCW2rJJwepe3PWFfOrf+AamOqerib8VZaI aeeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=urkf6OSFvCLlqSw6lFPF4wmFOWPVjcb6vjAwXhtlBl0=; b=aXMtRrc3w/mR88GDoeQ0gNl2kr990ydVfq8ZdPGZ2j5Q8Ze3Q4LGGng4TAbu9xoLRX dyngHLD3QS8//8zDSv73wFhgJNmp/W1XoQ7/5gk5bXuzmUXYt+ZBHXrDlbYrS9VElll7 Z892SMRNh/NFPFNZ4SJKKGkdA9oqfNtzHiGYm2V54ke1GI4FJQXen5narHq6GW29zhVA 7RcTEECugVcdeRbV3beslezqaF+YO7lKPlqmh4AAJgIFs/hcSOvRKuwCS4c40tfAgZ+T bEJYl/4bfM8JPXYnAsWZZUGHDS+2zdOwlTpQt0xbdFzFaA5+0GK58QVxrWLQ/28Je5jf 5MZw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n8-v6si389238pls.231.2018.02.09.03.41.58; Fri, 09 Feb 2018 03:42:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751040AbeBILlU (ORCPT + 99 others); Fri, 9 Feb 2018 06:41:20 -0500 Received: from 5.mo3.mail-out.ovh.net ([87.98.178.36]:56360 "EHLO 5.mo3.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750945AbeBILlT (ORCPT ); Fri, 9 Feb 2018 06:41:19 -0500 X-Greylist: delayed 406 seconds by postgrey-1.27 at vger.kernel.org; Fri, 09 Feb 2018 06:41:18 EST Received: from player758.ha.ovh.net (b6.ovh.net [213.186.33.56]) by mo3.mail-out.ovh.net (Postfix) with ESMTP id 2AED3195BF4 for ; Fri, 9 Feb 2018 12:34:31 +0100 (CET) Received: from bahia.lan (lns-bzn-46-82-253-208-248.adsl.proxad.net [82.253.208.248]) (Authenticated sender: groug@kaod.org) by player758.ha.ovh.net (Postfix) with ESMTPSA id D6E722C00AC; Fri, 9 Feb 2018 12:34:20 +0100 (CET) Date: Fri, 9 Feb 2018 12:33:42 +0100 From: Greg Kurz To: jiangyiwen Cc: Eric Van Hensbergen , , , , Ron Minnich , Latchesar Ionkov , , , Veaceslav Falico Subject: Re: [V9fs-developer] [RFC] we should solve create-unlink-getattr idiom Message-ID: <20180209123342.11b17062@bahia.lan> In-Reply-To: <5A7D4976.6060407@huawei.com> References: <5A7D4976.6060407@huawei.com> X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.31; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Ovh-Tracer-Id: 9747478444629268773 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtfedrvddtgdeftdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 9 Feb 2018 15:10:46 +0800 jiangyiwen wrote: > Hi Eric and Greg, > > I encountered the similar problem with create-unlink-getattr idiom. > I use the testcase that create-unlink-setattr idiom, and I see the > bug is reported at https://bugs.launchpad.net/qemu/+bug/1336794. > Then I also see you already fix the issue and push the patch to upstream. > https://github.com/ericvh/linux/commit/eaf70223eac094291169f5a6de580351890162a2 > http://patchwork.ozlabs.org/patch/626194/ > > Unfortunately, the two patches are not merged into master, I don't know > the reason, so I suggest if the patche can be merged into master, and > it will solve the create-unlink-getattr idiom. > I had tried to go a bit further and address the general issue of f*() syscalls versus unlinked files: QEMU: http://lists.gnu.org/archive/html/qemu-devel/2016-06/msg07586.html Linux 9p driver: https://sourceforge.net/p/v9fs/mailman/message/35175775/ I remember that some issues were then reported during review of the linux patches, and I never got bandwidth to investigate further... But if you'd like to resurrect these threads, please do. :) > Thanks, > Yiwen > Cheers, -- Greg