Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1021832ybe; Fri, 6 Sep 2019 10:38:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqw6R0s0LSpfW22b+b24CdtEnviCXHKz6g1Z+RVumBYIuQRCvlD1aUarr3woYGcSi1IW/Xk6 X-Received: by 2002:a17:902:7792:: with SMTP id o18mr9887297pll.73.1567791496416; Fri, 06 Sep 2019 10:38:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567791496; cv=none; d=google.com; s=arc-20160816; b=PsIOBJh6ZXKwSosqC1MhJnlJrC7NBT9GbsGzyXjJ7BHLhwDJhyUe9VAOgd8OscTcp0 U4fGj0Wb5dhim8Edm4eUA0XJwS6afO7p9oMyVixW6g/lunctZUsrKcgvgSj03SOyAFLF xJ6ztRO/4138eF3yq3TshL9CS9BxRETXD809dOyvoS1ROglBD7Djhu0zvxV7RDsba9Sf 9N6A3CUMfaFgD0nRx4FXWy+PwnQ9CwVUE/xtmvPbTM8L20jc0LsMxtPso0Ve1HKp/gih BsUKMbZ/LUqM782E4GzBDMNe+iLdL2a72Vas7fhMxL7dlBHTgZTVxNjucdc4Q9LMh4YB N9Fg== 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=xhWr9qaG0Vps/EPQLgWZrS7rWpbBzIxioupexowyz2Y=; b=j9xt784iXRSZCezM9a+1A8/4aFu6aUznhIb2ULMJyKOE2FJC0wbK9gwG2dKVu2+sd3 S7LKBjgPVDABe1cXgBSN2TtehvA068h0yh5y6v3sv/Vk/exnqqvNvxAHqzWxRmp5hRNM v7c37eyxUHFYsdj4vZD7/bbvsJC0XKVqywbBCGr/TBw9i7Edb7FsQBlsMBAKuTMRsIwd j7poxf+Cq1XTr16dWJT5BNRRGz6fZikAsm/YSRIzooWfhXH67IbwuOn04TjFrhM1sBwJ y/KnSuthnlVnET5wHvZ74xtlI363498SZKRi0Gl4sXAoTxEQaVtF+cibYwfrUQwrHfTU QD1A== 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 a5si5024465pgw.454.2019.09.06.10.38.00; Fri, 06 Sep 2019 10:38:16 -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 S2391463AbfIFMHF (ORCPT + 99 others); Fri, 6 Sep 2019 08:07:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51928 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387557AbfIFMHE (ORCPT ); Fri, 6 Sep 2019 08:07:04 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5CE86300BCE9; Fri, 6 Sep 2019 12:07:04 +0000 (UTC) Received: from localhost (ovpn-117-208.ams2.redhat.com [10.36.117.208]) by smtp.corp.redhat.com (Postfix) with ESMTP id 04D145D9CA; Fri, 6 Sep 2019 12:06:58 +0000 (UTC) Date: Fri, 6 Sep 2019 13:06:57 +0100 From: Stefan Hajnoczi To: Vivek Goyal Cc: linux-fsdevel@vger.kernel.org, virtualization@lists.linux-foundation.org, miklos@szeredi.hu, linux-kernel@vger.kernel.org, virtio-fs@redhat.com, dgilbert@redhat.com, mst@redhat.com Subject: Re: [PATCH 18/18] virtiofs: Remove TODO item from virtio_fs_free_devs() Message-ID: <20190906120657.GZ5900@stefanha-x1.localdomain> References: <20190905194859.16219-1-vgoyal@redhat.com> <20190905194859.16219-19-vgoyal@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="H7BIH7T1fRJ3RGOi" Content-Disposition: inline In-Reply-To: <20190905194859.16219-19-vgoyal@redhat.com> User-Agent: Mutt/1.12.1 (2019-06-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Fri, 06 Sep 2019 12:07:04 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --H7BIH7T1fRJ3RGOi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 05, 2019 at 03:48:59PM -0400, Vivek Goyal wrote: > virtio_fs_free_devs() is now called from ->kill_sb(). By this time > all device queues have been quiesced. I am assuming that while > ->kill_sb() is in progress, another mount instance will wait for > it to finish (sb->s_umount mutex provides mutual exclusion). >=20 > W.r.t ->remove path, we should be fine as we are not touching vdev > or virtqueues. And we have reference on virtio_fs object, so we know > rest of the data structures are valid. >=20 > So I can't see the need of any additional locking yet. >=20 > Signed-off-by: Vivek Goyal > --- > fs/fuse/virtio_fs.c | 2 -- > 1 file changed, 2 deletions(-) Reviewed-by: Stefan Hajnoczi --H7BIH7T1fRJ3RGOi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAl1yS+EACgkQnKSrs4Gr c8hs9gf+K5gZQL97pXObXjA7p0E5N+4Mu7Z87yZAklDhpHu9q0fe3y4R1Mgfbav4 2LIQdjT1jkJl0MxWr5p90E65k9EIXHqDWalOtCobxdFYDbw9IOKOtm6cbp6qbQQX iURNmLJIf7q4+rIu5ekeRtb8/DmshZJ1zWdbYvegrvMcaRIP+PT2NcBiccFSKX24 yZ0VlxNOfXZIvXSirKuKn29sKtaLlqbmwtsLGIctcryosKZAS6TP7SJ0iUIh1q83 v3jAjTJE+YIybDSFbuFE0bkKHNm2zKrZLKoUL+tI4GC6l0FoE1zk5yJPU+qNKTr+ nx5oaJ/l0rx/cb7cpVXU9vB5xXNlSA== =mSQ0 -----END PGP SIGNATURE----- --H7BIH7T1fRJ3RGOi--