Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp816518pxj; Thu, 20 May 2021 23:10:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfqxz39ZC0cNyn8q8FEvBSkZg5QAXbrsKo58c2nAWnoeh+toquf9B2eJLiki1AEAq6gFeR X-Received: by 2002:a17:906:1617:: with SMTP id m23mr8965971ejd.352.1621577432525; Thu, 20 May 2021 23:10:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621577432; cv=none; d=google.com; s=arc-20160816; b=EWp+3nR1C6jszUmOu7a+/R1zhWLUOmtzaP2fOni3bagHIj1i/bUXmQf7qQiyIUO2Iq 8Ff3AEtCsR93brmjLkewdol6zwewl7p48iqMOmv73CJHNCAWBdTTrRl+cm65ni12zLTC qQCx/2r9tmYObQlYXP7LT98qgNxDvqbfCNl2q7yLHbmXAOH0Yrw0b+/mkxe01VvjqfGk u9605w8oozcww9AHy52F0Wy9g03NZE+7Zc6vyqJiZtSW41MEgnnsr/WnMida0Z+KDMy3 YCBUMOk2dEvi26eSj0c1ha/YGHQsJlnrkd+GA6PudgEdokU9jMxP6bWu3ssVS1FZ+SE9 eYGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=2aibA7H4dkJWF+7FJoyvtZYKc260A08/kXGPNkhVxjY=; b=Y6KCkOq4BfBRpRqxGby6Khq96LJUhz819+MW4Mpamxu+KG1m1MGubY8TXZh1zSNlAF Hj+ViMBZPjnuMihFveTJ9jxc3Kk44kbUtJ8927RlPUcTN09FUnfK8OJ+gnGEfBYWptPs 4xtQlxyK49q6DT3jp19lZfRj1VxAClfDBXXbyONhxEXL4oGMmp6uq4SG0nsD2gZ7PDiB 7tJUo8eEGrTOtv6kTlK4r6SMVJ6vNp5GsIRucSyLofKncZzArlC7ajH9VQ6rGXv1fk8t I2FAsv6z6gjWXEbZN+eFMqZzCp+/R6lbh+VkDRgN3czXRzRUPg9fXaCl3R3VJjIW6pVs 4rCg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p23si4728576edw.264.2021.05.20.23.10.09; Thu, 20 May 2021 23:10:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232783AbhETPsc convert rfc822-to-8bit (ORCPT + 99 others); Thu, 20 May 2021 11:48:32 -0400 Received: from us-smtp-delivery-44.mimecast.com ([205.139.111.44]:34577 "EHLO us-smtp-delivery-44.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231670AbhETPsb (ORCPT ); Thu, 20 May 2021 11:48:31 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-428-vupLqh65Oji912do6_HGVA-1; Thu, 20 May 2021 11:47:05 -0400 X-MC-Unique: vupLqh65Oji912do6_HGVA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id AA3DA79EC4; Thu, 20 May 2021 15:47:04 +0000 (UTC) Received: from bahia.redhat.com (ovpn-112-99.ams2.redhat.com [10.36.112.99]) by smtp.corp.redhat.com (Postfix) with ESMTP id F2DE310016F4; Thu, 20 May 2021 15:46:55 +0000 (UTC) From: Greg Kurz To: Miklos Szeredi Cc: virtualization@lists.linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, virtio-fs@redhat.com, Stefan Hajnoczi , Max Reitz , Vivek Goyal , Greg Kurz Subject: [PATCH v4 0/5] virtiofs: propagate sync() to file server Date: Thu, 20 May 2021 17:46:49 +0200 Message-Id: <20210520154654.1791183-1-groug@kaod.org> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=groug@kaod.org X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: kaod.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This was a single patch until v3. Some preliminary cleanups were introduced for submounts in this v4. This can be tested with a custom virtiofsd implementing FUSE_SYNCFS, here: https://gitlab.com/gkurz/qemu/-/tree/fuse-sync v4: - submount fixes - set nodeid of the superblock in the request (Miklos) v3: - just keep a 64-bit padding field in the arg struct (Vivek) v2: - clarify compatibility with older servers in changelog (Vivek) - ignore the wait == 0 case (Miklos) - 64-bit aligned argument structure (Vivek, Miklos) Greg Kurz (5): fuse: Fix leak in fuse_dentry_automount() error path fuse: Call vfs_get_tree() for submounts fuse: Make fuse_fill_super_submount() static virtiofs: Skip submounts in sget_fc() virtiofs: propagate sync() to file server fs/fuse/dir.c | 45 +++++--------------- fs/fuse/fuse_i.h | 12 +++--- fs/fuse/inode.c | 87 ++++++++++++++++++++++++++++++++++++++- fs/fuse/virtio_fs.c | 9 ++++ include/uapi/linux/fuse.h | 10 ++++- 5 files changed, 120 insertions(+), 43 deletions(-) -- 2.26.3