Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3923340ybb; Mon, 6 Apr 2020 19:26:49 -0700 (PDT) X-Google-Smtp-Source: APiQypLM1UVVOcmnBDp7oH+PO+lVL7WibjrLAQLisarlR7DRetT45SezG8kSDAjGLYFdkT+jYnrW X-Received: by 2002:aca:b5c3:: with SMTP id e186mr97777oif.114.1586226409734; Mon, 06 Apr 2020 19:26:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586226409; cv=none; d=google.com; s=arc-20160816; b=E3xprd44RMxmkpfkHsxiCU0PzjJEWvgPkPmYWR01mFF+1HRpm7Rv/zbREpRa0mD7sU H1Mbh3lUsNyHzQeZUMipP/GoGo7bM1SmnEhJ6OP5iLYcxJFOd56nALHkupAcIcRQQyuh cQwKUCXnbQU3luDn21wU5/aUjauYxf7cuEv2yO6o3puhzK/N9n7Z8ck3V8G7IkkGTSpS TUTxY1fOB5uJuP48dtLiQZbG6Hc37bsAP7iovq0pQpEac4avvdzCCuAaHqwB7QEPRrFe ARCChBToz+d+T6227y+V3Mki7QJKst2LRKhWtSHCA5AUjdvyIaSVd5dpzROAYkWZKx8t Y4xw== 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 :dkim-signature:date; bh=vqLfdHvn0ODJzqesADMJDwHBTeRz7PwDzCmZBR0ETSk=; b=n7U/OPgrOP1sHgiN39IKrcYCTZDRshFakJ8snc9ZoWC7B74XcS6DvWB4VJrvBy0yfY RBDLURYGWHnsB1lVhvL/lXkfU/kKhu39thi0pUk4MkoLD/zJ8Q82CxqhdAPlAax2LoWU HEzLyhMx7yNhkH+vA58nJAuY8/eTW3inuGR6z9dHlBLWooiWEU+SrznKmJPdWrkihWkb sBlKS6ii0pgCmXXdAztbHIZ1Ow2koDTV7/d3xVqDHVDlSDLjD660W9F+x5oFvYiOhCGD gUlKaVOtVwKSUceC8SnLFeVeh65Du7B03iS5KarcaEXw8o49B1plJVBjL3B19zwPx7YD i6qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cock.li header.s=mail header.b=Lll4n0UH; 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 h19si604205otq.86.2020.04.06.19.26.37; Mon, 06 Apr 2020 19:26:49 -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; dkim=pass header.i=@cock.li header.s=mail header.b=Lll4n0UH; 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 S1726504AbgDGCZk (ORCPT + 99 others); Mon, 6 Apr 2020 22:25:40 -0400 Received: from mail.cock.li ([37.120.193.124]:44758 "EHLO mail.cock.li" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726310AbgDGCZk (ORCPT ); Mon, 6 Apr 2020 22:25:40 -0400 X-Greylist: delayed 549 seconds by postgrey-1.27 at vger.kernel.org; Mon, 06 Apr 2020 22:25:39 EDT Date: Tue, 7 Apr 2020 05:16:26 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cock.li; s=mail; t=1586225788; bh=qGyX1HAPEsmwawjGfgfHc62Pd/1AP3V4lb8GMUPYgI0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Lll4n0UHK6zDbeXwmQeKbYCRle2Ckod6ONDIFvBXJyYIA9WflPyz/XHG+MRCZUejl M+jyxLy+2MpfcpUpXUEDtgK6Szd63wYw8dhGw08NPLVwr/6+6fo1+x/1X1HcuXYW/2 t2TkRHYH7UKLknO71pouxikDYwLUw6aqyaWjsIK7kI8dGC5DtFFYoi0zZguqHhnmn5 CLn6tUYNvcMwLG5Q1qUVJ7cZ9OWILgZfvrh8CFlSMXxc/FxB3Y1Sin/3Y1URUVbdSY Mrl+7rLPbx6qAAHREDghiv3oHkjTka4qNdnRgUw5WMpf2mMeCN4FPja9PkhTCDHJPO pv41uqpfKQm4g== From: L29Ah To: Dominique Martinet Cc: Linus Torvalds , Linux Kernel Mailing List , linux-fsdevel , v9fs-developer@lists.sourceforge.net Subject: Re: [GIT PULL] 9p update for 5.7 Message-ID: <20200407021626.cd3wwbg7ayiwt4ry@l29ah-x201.l29ah-x201> References: <20200406110702.GA13469@nautica> <20200406164057.GA18312@nautica> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200406164057.GA18312@nautica> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 06, 2020 at 06:40:57PM +0200, Dominique Martinet wrote: > The use-case here is stuff like reading from synthetic files (think fake > pipes) where data comes in like a pipe and one would want read to return > as soon as data is available. > Just thinking out loud it might be possible to make pipes go through the > server and somewhat work, but this might bring its own share of other > problems and existing programs would need to be changed (e.g. wmii's > synthetic filesystem exposes this kind of files as well as regular > files, which works fine for their userspace client (wmiir) but can't > really be used with a linux client) > Anyway, I agree looking at O_NONBLOCK for that isn't obvious. > I agree with the usecase here and posix allows short reads regardless of > the flag so the behaviour is legal either way ; the filesystem is > allowed to return whenever it wants on a whim - let's just add some docs > as you suggest unless Sergey has something to add. In fact i would prefer disabling the full reads unconditionally, but AFAIR some userspace programs might interpret a short read as EOF (and also would need to check the logic that motivated the kernel-side looping). -- () ascii ribbon campaign - against html mail /\ http://arc.pasp.de/ - against proprietary attachments