Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4008462ybe; Mon, 9 Sep 2019 02:43:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqzsEgqRvceUDvllsVX1FPWYMMsbLuWVPxdNFF5GNkg3UR7SPbHD2Z5SzRDHc3qpQLRvFFDf X-Received: by 2002:a17:906:390c:: with SMTP id f12mr18594006eje.153.1568022181104; Mon, 09 Sep 2019 02:43:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568022181; cv=none; d=google.com; s=arc-20160816; b=KwDDnuzWU2+OXALch1UhY5BD11EbXCMPAlebPqrhp5UpF06y67JWLi1Om6qJQfhiXn fWTjC/M7iR+lkbEzICep2DVTKVlqKPXP0E03m6lDUQc4FCO9rzr4Z26xoV7o7JTZEHe7 tckDCtZNVQhkD7Z31E62hqgXx1Cy4wZ7phuFHr9mxNDheMDN3eFtCKaFvwt4Zfo1nPVo dLjgwvnZEU3M+o2zrMtae9LVw148ll7QvBmM5p064vQ2tf1/rz6aAjQtL8ZvKOl1PWKh 4++FKHtx0/7VBJeqxMssC/unXQOK96XFBOyafyRKsANxBe0OG1b7ByVH60s71dMt13S2 DayA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=yP/SLjSh0R1Gi/Dhx7T0PQvPI5/LV0CPiqLPGKfJUso=; b=sUeRbf+ErOoLtROPVbV/9sXry1ZfPl/MSObZ19z8BBxSrgM/YllkX5XZcooOSB3BDJ +2oQezhuGUrH5utSHjt/hRAAnULjDDovEKPj4efclsTpcXeaNZT1xlKknxFg1XhKrcdQ 6ojAiF3lrEBaXuxymeMeX1CPrvhVV1FfLk4Q9FBguP526LF4UwTNzPJ9e/H4tCoZpXBV V6DQ+Z9zIVN0/Xq1SIdSX/xxIyLPGC1zHsSZ+ieCyQHcv62W/hQSvBCjdWiUTWPm0KQ+ Xe+7AH4yFkxTaR8FZauSMfgq2e6YXBxttxqQ4Wo/4C/ftB4VNtTc6+xItOia85Kcv2LA 2ffA== 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 w23si2407678edv.199.2019.09.09.02.42.37; Mon, 09 Sep 2019 02:43:01 -0700 (PDT) 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 S1728933AbfIHLyV (ORCPT + 99 others); Sun, 8 Sep 2019 07:54:21 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:36544 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728667AbfIHLyU (ORCPT ); Sun, 8 Sep 2019 07:54:20 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 8E5BFA0EC41FADBD4B48; Sun, 8 Sep 2019 19:54:18 +0800 (CST) Received: from [10.45.2.172] (10.45.2.172) by smtp.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.439.0; Sun, 8 Sep 2019 19:54:14 +0800 Subject: Re: [Virtio-fs] [PATCH 00/18] virtiofs: Fix various races and cleanups round 1 To: Miklos Szeredi , Stefan Hajnoczi CC: "Michael S. Tsirkin" , , , , , Vivek Goyal References: <20190905194859.16219-1-vgoyal@redhat.com> <20190906103613.GH5900@stefanha-x1.localdomain> From: piaojun Message-ID: <866a1469-2c4b-59ce-cf3f-32f65e861b99@huawei.com> Date: Sun, 8 Sep 2019 19:53:55 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.45.2.172] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/9/6 19:52, Miklos Szeredi wrote: > On Fri, Sep 6, 2019 at 12:36 PM Stefan Hajnoczi wrote: >> >> On Fri, Sep 06, 2019 at 10:15:14AM +0200, Miklos Szeredi wrote: >>> On Thu, Sep 5, 2019 at 9:49 PM Vivek Goyal wrote: >>>> >>>> Hi, >>>> >>>> Michael Tsirkin pointed out issues w.r.t various locking related TODO >>>> items and races w.r.t device removal. >>>> >>>> In this first round of cleanups, I have taken care of most pressing >>>> issues. >>>> >>>> These patches apply on top of following. >>>> >>>> git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git#virtiofs-v4 >>>> >>>> I have tested these patches with mount/umount and device removal using >>>> qemu monitor. For example. >>> >>> Is device removal mandatory? Can't this be made a non-removable >>> device? Is there a good reason why removing the virtio-fs device >>> makes sense? >> >> Hot plugging and unplugging virtio PCI adapters is common. I'd very >> much like removal to work from the beginning. > > Can you give an example use case? I think VirtFS migration need hot plugging, or it may cause QEMU crash or some problems. Thanks, Jun