Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1459205ybe; Thu, 5 Sep 2019 16:05:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzPNqsrzrV9VApUFDxCm58hPi0dXgahVje9eSzWRDwxEVHHdiOTHPbbpYDlVuk4SmPolzHU X-Received: by 2002:a17:90a:730a:: with SMTP id m10mr6664615pjk.86.1567724744080; Thu, 05 Sep 2019 16:05:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567724744; cv=none; d=google.com; s=arc-20160816; b=OeTyVFH86hSHsyEq9CPL8seCacL0acKwcIZz+LY5n6hcxunU/Ei93iftnmMFAQ++ZW 9GdiliWU8BCLklDGUp+nThqOPSQH7ZLJ1OfgYt4OI4qNyFEtwoewyYYJV+SDLJv/nusS dcxi1XVCGvHNxbFz0+tGlp5ALR3E9QqmvJXv0AYxBPRFfBJahYu9pzmmGBEqGrsqtJr2 AgsOBGMgPiw4hz/IivxPLb5BX+KqQBPoVuRRpMmGIlQT5WBqESnXrkASH40T6FhY2snn 2XY6qcRHFr4Mtjgas8Qha8BzRSl2Om8ZGcmbV1vCZffR9kgUwaFq66Oh/f/ehmWpqysG i4Bg== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=bAts4p/31REpu4sbFhX8IBEJUCUw2TJ1Gj7A8MD6bP0=; b=D3KCtwsaLiSvteqG3q+Xu0mYnfAr8OvLUP3wn6TmxtkS/qc8QC8c3/JNsIVKRz3UrM ZwMWkVaBsmQPyhoXvW1NJNYQ4reTlzym5phMHG0CHQtM8XuR6FVwdIU2toqB6Fh410hz 0TW+4jxaMIbVLeeYtIQbj9XrML1suKwzflai/iYv+g8pkfbDce7VVDvmT5HbfIafa6se Pg91XiaU1r97tSndlIzpHGINvHV5zKDhNM3O/el05w016LM+9zwGeeN9iKdDgNSYluDJ bw4OAAJ8kTknxtHmYNGCAil8cGZKf2zZoyPhrNgdNCHsjcHKT+ooitiA/z9fCuEowZZn nMBg== 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 i71si2923264pge.3.2019.09.05.16.05.27; Thu, 05 Sep 2019 16:05:44 -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 S1733154AbfIETuR (ORCPT + 99 others); Thu, 5 Sep 2019 15:50:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60340 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388269AbfIETt1 (ORCPT ); Thu, 5 Sep 2019 15:49:27 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 01828308FBAC; Thu, 5 Sep 2019 19:49:27 +0000 (UTC) Received: from horse.redhat.com (unknown [10.18.25.137]) by smtp.corp.redhat.com (Postfix) with ESMTP id CFF0660127; Thu, 5 Sep 2019 19:49:26 +0000 (UTC) Received: by horse.redhat.com (Postfix, from userid 10451) id 2B9612253A9; Thu, 5 Sep 2019 15:49:18 -0400 (EDT) From: Vivek Goyal To: linux-fsdevel@vger.kernel.org, virtualization@lists.linux-foundation.org, miklos@szeredi.hu Cc: linux-kernel@vger.kernel.org, virtio-fs@redhat.com, vgoyal@redhat.com, stefanha@redhat.com, dgilbert@redhat.com, mst@redhat.com Subject: [PATCH 17/18] virtiofs: Remove TODO to quiesce/end_requests Date: Thu, 5 Sep 2019 15:48:58 -0400 Message-Id: <20190905194859.16219-18-vgoyal@redhat.com> In-Reply-To: <20190905194859.16219-1-vgoyal@redhat.com> References: <20190905194859.16219-1-vgoyal@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Thu, 05 Sep 2019 19:49:27 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We now stop queues and drain all the pending requests from all virtqueues. So this is not a TODO anymore. Got rid of incrementing fc->dev_count as well. It did not seem meaningful for virtio_fs. Signed-off-by: Vivek Goyal --- fs/fuse/virtio_fs.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/fuse/virtio_fs.c b/fs/fuse/virtio_fs.c index c483482185b6..eadaea6eb8e2 100644 --- a/fs/fuse/virtio_fs.c +++ b/fs/fuse/virtio_fs.c @@ -208,7 +208,6 @@ static void virtio_fs_free_devs(struct virtio_fs *fs) if (!fsvq->fud) continue; - /* TODO need to quiesce/end_requests/decrement dev_count */ fuse_dev_free(fsvq->fud); fsvq->fud = NULL; } @@ -1022,7 +1021,6 @@ static int virtio_fs_fill_super(struct super_block *sb) if (i == VQ_REQUEST) continue; /* already initialized */ fuse_dev_install(fsvq->fud, fc); - atomic_inc(&fc->dev_count); } /* Previous unmount will stop all queues. Start these again */ -- 2.20.1