Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4068477ybb; Mon, 6 Apr 2020 23:32:25 -0700 (PDT) X-Google-Smtp-Source: APiQypIk1Q4IPrT1cwn9NjkBbAsFFJwYJqm5UgnpU706bnO2gCpfsaZUrYs4zA36G0pKx7nTW0yr X-Received: by 2002:aca:eb4e:: with SMTP id j75mr594549oih.18.1586241144870; Mon, 06 Apr 2020 23:32:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586241144; cv=none; d=google.com; s=arc-20160816; b=0AmVYE6zgLVbn5JtW8PelYgHDTlKHjf3MJuCqzXo9E/1lxMd7GW44lsBt2KxREgQeI zxhwYmltkxtpLeU0pjJXv2RmuFT4xmRHL3GDgVFxE9sZcCkmSIraTqStyXMbP8T8zkCU vBi3+09ehjTmX1k5SCUZbd49MeQ4iNpKrUchnSIx8AB5fJ9SDI6fYMF4ccNal42iJY0R O7y7TNg/F++OR/v2vTgXdkiXrUrgUhHIh3hPNNxzQ1X+17Y4Yj5Mwts0qOurycp1PcrD Ik3l3LQ8Y1RZT/+Kv6AvdQ3YLfgvFzff4smyy3vXRPC/ZZpDD1BWZ3goyp21RNxmN0AX 9cYA== 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=ZP52uz6cdWKNFEe5M5hR/AIwMUlVQV8qT6xEBB/JIlI=; b=T4IBxxfnJZt8j6uqkRSn+yNlU/F1cIxjj25LGvOpW6ze/jdtsOObg/P5aUeZXq/kV2 Loxz8mDChQo2YRazlWNBT1cWthkiglcRgQgiRnuPuD09CgBNwfi3Wx/tsco+bjCwMypG M218bi1i9nj8R3tE/uEXLQO9KmrU6Gjt4X1FiBY4sizcDWOxJvC6fR2iI3fq+caddT96 5Q8tAO5vdz5qjFI1qIVfJzrw0wZoFi9jSIKPvP8NbLC08xNh0QS5x8ngUNwDX+4FppGk Ap4XJvHurDmgMhxoCcMssA1ePPFrYiQprf9VBcVM3CUnmG6Y5QyfTY6CtYDlU/U23nGH wPSw== 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 r11si828374otd.26.2020.04.06.23.32.12; Mon, 06 Apr 2020 23:32:24 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726865AbgDGGbo (ORCPT + 99 others); Tue, 7 Apr 2020 02:31:44 -0400 Received: from nautica.notk.org ([91.121.71.147]:47617 "EHLO nautica.notk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726591AbgDGGbo (ORCPT ); Tue, 7 Apr 2020 02:31:44 -0400 Received: by nautica.notk.org (Postfix, from userid 1001) id 4A516C009; Tue, 7 Apr 2020 08:31:42 +0200 (CEST) Date: Tue, 7 Apr 2020 08:31:27 +0200 From: Dominique Martinet To: L29Ah 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: <20200407063127.GA30642@nautica> References: <20200406110702.GA13469@nautica> <20200406164057.GA18312@nautica> <20200407021626.cd3wwbg7ayiwt4ry@l29ah-x201.l29ah-x201> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200407021626.cd3wwbg7ayiwt4ry@l29ah-x201.l29ah-x201> 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 L29Ah wrote on Tue, Apr 07, 2020: > 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). Willy is correct there we can't just do that, way too many applications would break. I think O_NONBLOCK on regular files is a good compromise, let's not go overboard :) -- Dominique