Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp901819ybe; Fri, 6 Sep 2019 09:00:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqzovo0wJxs2mHViWrr4ifLJlmJcpGq2nGuxmL73i9dwnFs+SsDn8vy1KjPxi/8LqEpi69cT X-Received: by 2002:a62:2ac4:: with SMTP id q187mr11252325pfq.242.1567785605066; Fri, 06 Sep 2019 09:00:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567785605; cv=none; d=google.com; s=arc-20160816; b=LQT8pt7RmUvF6Zq8cOy2qOxQydGuD9ICJU30bSnpvxs/WVdxftqcOdRwSWIr4JZKxe hlZXSmtRa4VQNTVn2cgiqt7zYzM+KcCWOw5UAocMYiWVNBxHz5YxJX1rBOw5b+XGFvqY MSW2fPLiHdv98ZwjhBEfd61m08vwGPbj0LadL88weSM3v9lX9gi3WmAP6pWFK7fNncII iPBPD/hco3vHUPN+MrqxSda4+1qamgssnm4QriVjKfMnMw6tjtoUqWeRJS0LBiCg5Uz9 n70IbfYd8YhY3sRcvezmic+CnEQJgvn98vi1LxmeKKhAphNihvtwITipP+X9CTmznx1+ H1fQ== 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=6uII/TDKtNysUEpoRGjulWojbUKgUD+pN+CXcP07vnA=; b=Vc7Xdh8XgRS9J00m30W85aXs2ZklW3ZjPEyc5E8X9hpr2xMLdVYte6ck1+oAESNGrH gpnU+looxAuzZ64kxSO+sOt5qaW9ZIQdJk2Msb486pc1QY1xKSh32TqZH7s+pfOtAjYV Nkb/aSNKu06hXm0Dl7rImJz23LaThbcZVDW1L/EgI/QOl8BU4OqdItVDBLd88UYncK6T ComyplBjgRbveWKA9VjG2si6B4aJAFKApssnG+EKkvQJcHqul75yF5uQ8lo8DUErrIDD THKCAL4HBpo9z6pM67/HA9cEz4hAgjIk0BpWb6RMO9xWxIFNizOaeEPQoPbDsoMqRNV/ dFEQ== 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 s11si4715984pgg.200.2019.09.06.08.59.49; Fri, 06 Sep 2019 09:00:05 -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 S2388553AbfIFKp4 (ORCPT + 99 others); Fri, 6 Sep 2019 06:45:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47432 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726080AbfIFKpz (ORCPT ); Fri, 6 Sep 2019 06:45:55 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9468D878E46; Fri, 6 Sep 2019 10:45:55 +0000 (UTC) Received: from localhost (ovpn-117-208.ams2.redhat.com [10.36.117.208]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0ACE81000321; Fri, 6 Sep 2019 10:45:49 +0000 (UTC) Date: Fri, 6 Sep 2019 11:45:49 +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 04/18] virtiofs: Check connected state for VQ_REQUEST queue as well Message-ID: <20190906104549.GL5900@stefanha-x1.localdomain> References: <20190905194859.16219-1-vgoyal@redhat.com> <20190905194859.16219-5-vgoyal@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="L/Qt9NZ8t00Dhfad" Content-Disposition: inline In-Reply-To: <20190905194859.16219-5-vgoyal@redhat.com> User-Agent: Mutt/1.12.1 (2019-06-15) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.68]); Fri, 06 Sep 2019 10:45:55 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --L/Qt9NZ8t00Dhfad Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 05, 2019 at 03:48:45PM -0400, Vivek Goyal wrote: > Right now we are checking ->connected state only for VQ_HIPRIO. Now we wa= nt > to make use of this method for all queues. So check it for VQ_REQUEST as > well. >=20 > This will be helpful if device has been removed and virtqueue is gone. In > that case ->connected will be false and request can't be submitted anymore > and user space will see error -ENOTCONN. >=20 > Signed-off-by: Vivek Goyal > --- > fs/fuse/virtio_fs.c | 6 ++++++ > 1 file changed, 6 insertions(+) Reviewed-by: Stefan Hajnoczi --L/Qt9NZ8t00Dhfad Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAl1yONwACgkQnKSrs4Gr c8hiJQf/RcdMwTruxvR/8Bl1CjfN+mUt21UCtv0K/otHklhGEdna7AzGT1QFFBqi iyQUlYckbqC72mhKLNOWT/I8JJkq3jUS+xUf2i/qzNv/4B3yVfCFazfumOIcb7P+ XriTd61VYMSaPfJRPXLvn+oxLknVB9LohRBQHZc0ljt339uGCt9YBlc38G2/XRud PT41SRg8rwBjDyfqx3OVTzL7kgxdXaM5ZbUJo24/To3ZQdmzO/QWWDJqUCGi0kCQ r5x6rkMUjd9gZCIUcgio7ourUi3+gfQA+sIQHU3FUH+UCyL7+nM5XM61n7t80BpH P8ACIKgUO0IDNTm9uaTHnuUTZAUrrw== =+Vva -----END PGP SIGNATURE----- --L/Qt9NZ8t00Dhfad--