Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp850655ybe; Fri, 6 Sep 2019 08:13:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqygbof3bJKiMl6GBbJLoh3FfSnfROrexRvXt2jayLmS4esSJ91Z07kxd3HsTWB4bEIjD8gD X-Received: by 2002:a17:902:8a87:: with SMTP id p7mr9782416plo.240.1567782825698; Fri, 06 Sep 2019 08:13:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567782825; cv=none; d=google.com; s=arc-20160816; b=MoG1zXU6gxUJe1IfDyf2YYgZPx0gbZXUrj6Q+PXPfuLDfx09+9893L6DMA1YhqhIqX FGS50TJAg3SQTv7S412ctDkOtpEfsB8kB7ry+S+ApCW0kvQL+pAOWcE0vTt0c9hA1jR/ MPtxb4ZYPK3EQPvxmqhuz2N4+8qoyhNJjWQw2xC/NPEatEfAPNktKSodZjidGr3jXVoU j4qVv6aT6pDc1Ukl6OzQkaA7BJNV7JN7AIM0Q90eBEyFnvo3pNFX5EwS2QEZsx3YlDU+ pMX43/ULhJXDjCBkYj46oF90HM9QkCq5YTNVRTdwOQktgsLXgrtOkAqkgc2gaA7RAv7H 61dQ== 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=Rx591Je3TtagvuphrsXF0qFAvHSIUv5YOV2iQM4sEbg=; b=vdHUwm3ZCD4FRGtJFT+y97vwhpWAmLqD65C3WWRhxAZkzFJssXRXlo3S5oKr6mnQQ5 a9fY3s6TzJ2t0dRXhqRj9FE0Ir/mVVsk/pUD+ZOUnQDgm3171T5yQeYCCAwMXpJnRT1Y tinUZDseGoHuebDr8dwkdc+UEdY6JS0o+fdLehOyV4SeMmJ2yq+dyFlQDc2vBKY+GGQk uc6rEZ7piSHluvtJ6Oj/JQ8We9dOQL65HHftEXVwYwLjAR3nudNyXivBLZNiE7tJ0M2o VnjsndOV1c+hso6+y6aTAE/18TaZh3K2Myk7O3drmK7JtIf2THT26fMPL1yCB/ff0Pby MdiQ== 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 123si5960150pfy.61.2019.09.06.08.13.29; Fri, 06 Sep 2019 08:13:45 -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 S2390892AbfIFLug (ORCPT + 99 others); Fri, 6 Sep 2019 07:50:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53072 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389867AbfIFLug (ORCPT ); Fri, 6 Sep 2019 07:50:36 -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 0113F190C106; Fri, 6 Sep 2019 11:50:36 +0000 (UTC) Received: from localhost (ovpn-117-208.ams2.redhat.com [10.36.117.208]) by smtp.corp.redhat.com (Postfix) with ESMTP id EED2A5D9CA; Fri, 6 Sep 2019 11:50:27 +0000 (UTC) Date: Fri, 6 Sep 2019 12:50:26 +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 11/18] virtiofs: stop and drain queues after sending DESTROY Message-ID: <20190906115026.GS5900@stefanha-x1.localdomain> References: <20190905194859.16219-1-vgoyal@redhat.com> <20190905194859.16219-12-vgoyal@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="6zn93sY2JrH9m7VZ" Content-Disposition: inline In-Reply-To: <20190905194859.16219-12-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.6.2 (mx1.redhat.com [10.5.110.70]); Fri, 06 Sep 2019 11:50:36 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --6zn93sY2JrH9m7VZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 05, 2019 at 03:48:52PM -0400, Vivek Goyal wrote: > During virtio_kill_sb() we first stop forget queue and drain it and then > call fuse_kill_sb_anon(). This will result in sending DESTROY request to > fuse server. Once finished, stop all the queues and drain one more time > just to be sure and then free up the devices. >=20 > Given drain queues will call flush_work() on various workers, remove this > logic from virtio_free_devs(). >=20 > Signed-off-by: Vivek Goyal > --- > fs/fuse/virtio_fs.c | 11 ++++++++--- > 1 file changed, 8 insertions(+), 3 deletions(-) Reviewed-by: Stefan Hajnoczi --6zn93sY2JrH9m7VZ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAl1ySAIACgkQnKSrs4Gr c8hPCggAqxxAtpxUlxuyJ1JMZVearCJpL7Y98Ts25vXNZJKaGv/Z7w+0b1YNHE04 RuXVOEqhwAG5VKOIpPYs+SJwTEwWTgsHEdAgtprbwW+v/vrOlf3LEaC9QS7+Z6bZ altTVdvWHQiqulsObNYVrgm/alLh75y8skYmwHHAK0EtbLoOwBnwzYNHyuOsH7tk YdpXmipXCBBtjQrC9rWXSt0ug0xCm29uK/voTea5mrDVFTpTixcKJ2LM6jnT6r4v mXBtZwegQNYew2LLapEqG+GNE2SSbMD765Z/MFyR48cksq/5mEbCOavSmN8S1HfH zelxUzsGNaQAsRXvt+wUI8Y94D+aoQ== =OYfd -----END PGP SIGNATURE----- --6zn93sY2JrH9m7VZ--