Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2038340ybe; Tue, 3 Sep 2019 07:09:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqzSSMLklSeQrQ7BfgS230VzlIG9Qz1FmH3YSf7xKazRT4DWMeo/nvSpUtJHAXZOw+AneyDz X-Received: by 2002:a17:902:7246:: with SMTP id c6mr7715022pll.190.1567519780605; Tue, 03 Sep 2019 07:09:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567519780; cv=none; d=google.com; s=arc-20160816; b=yCDKEiqIWkEy+0AoazOG1WrLVMsdBfyYIqtRIeWS62zT8a+6uSliUzojyDTGcv8Xrr Ly3nJ0CUml8kNCmUiEBdhlTIp3HPxvG7mcFHK4LKgWD2WUPZKKi9YHYEwrXASmZw7oup FA48tGNjaqqQk6U11piuih9Uq/R6a0KgOxBs5xedtG09ujcSydHQ3Wj03dZw+kuU2IUn KgpDrd+sVPnhsR6Dzht2gy4AnSjQItEcGN0UYiymQomxLpZOSfaKGk8zGlcoJ7lUvCzI UvP/55rvL7gsOwzqIG5LHBBxqG5ZbyBMOWkKyA39xsphfqiO4Lh0mcknQk466aJ4hGVG 0t9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=kJTX2StRm8wUgY3ueMOk+uhvyrSdSyyEeRCKjKmwJyQ=; b=zCGu4qFAw3CxH4y6+bgfKYJrXsKBC3G3rrQI1qXDmKoV1pUiWH0gUgTzRoFV0UCnqg GWCCkqY3n0G8kgodSLUSPtuvdsq9PyWrVE7yCpqz47AznsHe/enn3sH/U57MJXQuzQYo f1GWArPAeRHITOMhfG0KyW2OqeSNUaNagBTQZnB9VEfSFcXc9o0Db1ZG7I5LyYf8/M0d StMQekIz20A05qAsmeULoDzu0mJbwU7ZFTtpj7iTDb8HzAaXvjJadozK8GD8+i8BZQfJ pCR1S0z2Z9Cc5FWGYA82N5uOB/kCQLiGDXTwG2DF/WO1jgUs/8di4YdKF2VF18fPQSIB ZW/Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t35si14750519pgm.8.2019.09.03.07.09.24; Tue, 03 Sep 2019 07:09:40 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729353AbfICOIC (ORCPT + 99 others); Tue, 3 Sep 2019 10:08:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41158 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727107AbfICOIC (ORCPT ); Tue, 3 Sep 2019 10:08:02 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 26B66C05AA52; Tue, 3 Sep 2019 14:08:02 +0000 (UTC) Received: from horse.redhat.com (unknown [10.18.25.226]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7F2EB60C18; Tue, 3 Sep 2019 14:07:52 +0000 (UTC) Received: by horse.redhat.com (Postfix, from userid 10451) id 0D019220292; Tue, 3 Sep 2019 10:07:52 -0400 (EDT) Date: Tue, 3 Sep 2019 10:07:52 -0400 From: Vivek Goyal To: "Michael S. Tsirkin" Cc: Miklos Szeredi , Jason Wang , virtualization@lists.linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, virtio-fs@redhat.com, Stefan Hajnoczi , "Dr. David Alan Gilbert" Subject: Re: [PATCH v3 00/13] virtio-fs: shared file system for virtual machines Message-ID: <20190903140752.GA10983@redhat.com> References: <20190821173742.24574-1-vgoyal@redhat.com> <20190903041507-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190903041507-mutt-send-email-mst@kernel.org> User-Agent: Mutt/1.12.0 (2019-05-25) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Tue, 03 Sep 2019 14:08:02 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 03, 2019 at 04:31:38AM -0400, Michael S. Tsirkin wrote: [..] > + /* TODO lock */ > give me pause. > > Cleanup generally seems broken to me - what pauses the FS I am looking into device removal aspect of it now. Thinking of adding a reference count to virtiofs device and possibly also a bit flag to indicate if device is still alive. That way, we should be able to cleanup device more gracefully. > > What about the rest of TODOs in that file? I will also take a closer look at TODOs now. Better device cleanup path might get rid of some of them. Some of them might not be valid anymore. > > use of usleep is hacky - can't we do better e.g. with a > completion? Agreed. Thanks Vivek