Received: by 10.223.176.5 with SMTP id f5csp2277690wra; Thu, 8 Feb 2018 11:14:40 -0800 (PST) X-Google-Smtp-Source: AH8x225HVwFZTAj9jNADkBsa7Ocl4U7E5YsBnZlvC9iBgaVMYMBdtY0Jt2XUla8vzJRicujH/j0y X-Received: by 2002:a17:902:5517:: with SMTP id f23-v6mr54206pli.163.1518117280625; Thu, 08 Feb 2018 11:14:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518117280; cv=none; d=google.com; s=arc-20160816; b=gnGydxxgSeQyrVCg1FJqBROZ1XgKDu5WCEvwuoWws2HRy3Z/HpwheZOCxiiJsjVJbl KS78i1ybG/+XEjQ9Z5hhESas6M5MbMHBrGEuoa/ieEHQhcHCA/ksOYJ8oYMFAOV+CAoM 0dLRrRWVVWMLVjHG9joASSCOHhifLZWPlnlvQcJnrdpgg736wFHZdqYGpN5/OW8BINDI syRqL4vkCSiPEm99+giSrIWU2hCjKRm5kHypRqw0l3H7nRZ5GhJ2UOKBrlwleJcnwGcG EtDzz0HSdQRkr0kkjY9D2rY2Ddgy1JaAYGtIwpSFi1SFu4EYIsKueH3MgIEcmHchmdTe DXIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=MGGCM8p3JPPz4Y7GxXfdHtS3fkPwUDsuGBRGMASkeII=; b=lhhSJBuVeXblnl+pfbi2RjmayGu/sXAOJIVJgY1c2wF2zdbB7DRwGI8W7JQkttVYDj 0Dr/uXbuFHu+yUd8U+TRF82k8b/k8MEjRObuLduzjwukZ3kytBScvfyHjDUcfzV2fzG1 Stvwy+CfKQ4N72dAZa2SMA3WIalhQ8YMiEdK8b2ucXc6L3hGnXZEbEvQRxuuFIUUB1/U X1uZfUvkBTDOReDvk0pMDz6f7OU6LnqK4lGg/89LZyeL1mtYS1FHOxaZ/XyWlOh+szUH m/dIBinORylVKfXwXe33HVaffb5WOJehJyKsnIkcLF/7S+382T2GQrJSByImO+7IbXB7 1WDw== 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 y72si375929pfd.88.2018.02.08.11.14.25; Thu, 08 Feb 2018 11:14:40 -0800 (PST) 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 S1752396AbeBHTNj (ORCPT + 99 others); Thu, 8 Feb 2018 14:13:39 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:41784 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752185AbeBHTNh (ORCPT ); Thu, 8 Feb 2018 14:13:37 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3DB1E4023112; Thu, 8 Feb 2018 19:13:37 +0000 (UTC) Received: from redhat.com (ovpn-120-144.rdu2.redhat.com [10.10.120.144]) by smtp.corp.redhat.com (Postfix) with SMTP id 4F99CB3013; Thu, 8 Feb 2018 19:13:36 +0000 (UTC) Date: Thu, 8 Feb 2018 21:13:36 +0200 From: "Michael S. Tsirkin" To: Greg Kurz Cc: v9fs-developer@lists.sourceforge.net, Latchesar Ionkov , Eric Van Hensbergen , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Ron Minnich , "David S. Miller" Subject: Re: [V9fs-developer] [PATCH] 9p/trans_virtio: discard zero-length reply Message-ID: <20180208211248-mutt-send-email-mst@kernel.org> References: <151665492548.14372.18325892476788349632.stgit@bahia.lan> <20180208185232.46fca063@bahia.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180208185232.46fca063@bahia.lan> X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Thu, 08 Feb 2018 19:13:37 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Thu, 08 Feb 2018 19:13:37 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'mst@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org OK, I've queued it. On Thu, Feb 08, 2018 at 06:52:32PM +0100, Greg Kurz wrote: > Ping ? > > Michael, > > Since this is virtio code and you have acked the QEMU part of the fix already, > would you be kind enough to take this through your tree ? > > Cheers, > > -- > Greg > > On Mon, 22 Jan 2018 22:02:05 +0100 > Greg Kurz wrote: > > > When a 9p request is successfully flushed, the server is expected to just > > mark it as used without sending a 9p reply (ie, without writing data into > > the buffer). In this case, virtqueue_get_buf() will return len == 0 and > > we must not report a REQ_STATUS_RCVD status to the client, otherwise the > > client will erroneously assume the request has not been flushed. > > > > Signed-off-by: Greg Kurz > > --- > > net/9p/trans_virtio.c | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/net/9p/trans_virtio.c b/net/9p/trans_virtio.c > > index 0845aad4ba51..ca08c72ef4de 100644 > > --- a/net/9p/trans_virtio.c > > +++ b/net/9p/trans_virtio.c > > @@ -171,7 +171,8 @@ static void req_done(struct virtqueue *vq) > > spin_unlock_irqrestore(&chan->lock, flags); > > /* Wakeup if anyone waiting for VirtIO ring space. */ > > wake_up(chan->vc_wq); > > - p9_client_cb(chan->client, req, REQ_STATUS_RCVD); > > + if (len) > > + p9_client_cb(chan->client, req, REQ_STATUS_RCVD); > > } > > } > > > > > > > > ------------------------------------------------------------------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > V9fs-developer mailing list > > V9fs-developer@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/v9fs-developer