Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp751074ybv; Wed, 5 Feb 2020 13:56:15 -0800 (PST) X-Google-Smtp-Source: APXvYqziR/EX/XsncBYeq5V7oPkN1xrCBD4pc8y9L4Qc4o8uHa0UAwttgfCrhX6EM6/yTrn+0llF X-Received: by 2002:a9d:7695:: with SMTP id j21mr28419526otl.157.1580939775057; Wed, 05 Feb 2020 13:56:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580939775; cv=none; d=google.com; s=arc-20160816; b=y33GGODtnGXPTvFdJQh65bixcvuXVPCD1iNvyBQfDMaljXfGJwKlka1VhguLIQ+g7k RC6RooCKmsBjdbKEWgtmmmg7ZkeJRSEU4qjlCU5Uax/dO6eIoOmYdj1nmkRegkWF9VaY DNWS7E0OjSmp0XA+kAPR4UtzwF6W5aHAvtLVgsXkNo/Iwrjca6pnHy+yChzqEgcmorfl dhSj9fwnx8KEVOW00pQqilgzxnaunF1yv9MzfLVD9PWvhALofpRzlgdsu3gdS5QCTNpE ceQZqa23xbCSOX+ZyhACeqlTtWne6Gic07uq2pqFPBkiiCfXzfVuSEGCdt0AkqZb79pK FzsQ== 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=us9/NdthOB+7RQc3OrgQ0DA4VQdmnfBaop+ACMPx27I=; b=UfDvXYUqqlodp4LywgYJ4hb1F6i2qKbRLDf2UTfqhM/eT1NK7z+jmo+fIItbLp3SXZ Smkp2PMDflOYgDOaOCm2IkGNGr4RE5lVW71w8PdzPeKZ/S5k3/5m/jTjEbOFXEpt1c/S /fZQzHCFDul7WRAbiVE1zbVgSHrUHJHQaZxe2EXR+kEOo1jq9Q/wgdcmHwvbdz/VIjgD zyv4tzqla2btCr0fszRed/ao7HSGOefcO35DMO8g5AwjCyADQW2PM0ri0MFZXPRUioC2 TLO3WDwyRTiu/OAA486HXd+DnqZjTWm22Twag/EPYBKZjtq7ffae8Uq03cOo4X9+B//i VWpA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k8si518770otp.69.2020.02.05.13.56.02; Wed, 05 Feb 2020 13:56:15 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727478AbgBEVzE (ORCPT + 99 others); Wed, 5 Feb 2020 16:55:04 -0500 Received: from nautica.notk.org ([91.121.71.147]:56696 "EHLO nautica.notk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727116AbgBEVzD (ORCPT ); Wed, 5 Feb 2020 16:55:03 -0500 Received: by nautica.notk.org (Postfix, from userid 1001) id E3728C009; Wed, 5 Feb 2020 22:55:01 +0100 (CET) Date: Wed, 5 Feb 2020 22:54:46 +0100 From: Dominique Martinet To: Sergey Alirzaev Cc: v9fs-developer@lists.sourceforge.net, Eric Van Hensbergen , Latchesar Ionkov , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] 9pnet: allow making incomplete read requests Message-ID: <20200205215446.GB3942@nautica> References: <20200205204053.12751-1-l29ah@cock.li> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200205204053.12751-1-l29ah@cock.li> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sergey Alirzaev wrote on Wed, Feb 05, 2020: > A user doesn't necessarily want to wait for all the requested data to > be available, since the waiting time for each request is unbounded. > > The new method permits sending one read request at a time and getting > the response ASAP, allowing to use 9pnet with synthetic file systems > representing arbitrary data streams. Much better, thanks! > Signed-off-by: Sergey Alirzaev > [...] > + if (n != count) { > + *err = -EFAULT; > + p9_tag_remove(clnt, req); > + return n; > } > - p9_tag_remove(clnt, req); > + } else { > + iov_iter_advance(to, count); > + count; Any reason for this stray 'count;' statement? If you're ok with this I'll just take patch without that line, don't bother resubmitting. Will take a fair amount of time to make it to linux-next though, test setup needs some love and I want to run tests even if this should be straightforward... Thanks, -- Dominique