Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp379206ybv; Tue, 4 Feb 2020 23:43:34 -0800 (PST) X-Google-Smtp-Source: APXvYqwGGUI/6JyXu49i9aY6fJoxf64HN7C4o1VwaGv8fuDYQpeGMzgHtvoTWEeHuuEhHmjOS0Uc X-Received: by 2002:a9d:7c99:: with SMTP id q25mr25419686otn.105.1580888614204; Tue, 04 Feb 2020 23:43:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580888614; cv=none; d=google.com; s=arc-20160816; b=ZMdpuWjjnaETURAMOX6dmJWnMI26Wbz9DspnpTPD471CfHc596Fc1QQjn+cY33lBxG r5j4A0cU6T8Y/ncM673o8bUbbt9BH0WVTA59g1iKnP0oLRCTHtpVsRTGSPkC56cZ0Ejs 88loXJjf4sL89pCkRGtSL3T44rFk5MFZKDiGWFAkcpxmcnVuCO2UfuDeZkotnjN9H4JT nqWLNcI8/3xKFUpIkpfrAJ3JQc6jZ8aXPDOwa/fqLcX1YzChW3dKsdNfCL1SiIoDBUFP Qcj1fa3yRo6/iFMfv486sOgqFZ5h6SdtW2iLiqrGJCprbyCm0HSj1iooaY7MhyMU2YOB +mhA== 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=NuqTaU/bGY0JB7QJ1q4eEV6+/JQB0Dvq65pgKPl6/60=; b=0zfULFxjm9O/VJYarKLJCoHxfA8WykU4aa2r9Y/guk0Fy1+6ivfVosfeFHyHJUECd5 wsGOy9Y3BDhklSXW3YbO5WEPLv0brF6TpCw4tVfVCaY+95vJTLHGppLu8Dm4K5/4ITsk jz9C9yqCppqHSetVllTTEV1hbitnM7uRcZ1GGVIyjzjZlWn2HgnOz7ynP8dKs6AtW4IY l0qf9cteo11QmVOUdNgxqKH0gcVRbCj7LULSCkUW4s3hyhasgOqNxCSBKd0wD56Bu/8B 8fULNdYSK3Kry58l2ZNLseMWSwtoCWan2k/8+exTE0Ep1ZPpIDB5fBcf0X6RmtBzwoIv SJPA== 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 y6si11025259oih.217.2020.02.04.23.43.04; Tue, 04 Feb 2020 23:43:34 -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 S1727083AbgBEHmC (ORCPT + 99 others); Wed, 5 Feb 2020 02:42:02 -0500 Received: from nautica.notk.org ([91.121.71.147]:46353 "EHLO nautica.notk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725497AbgBEHmB (ORCPT ); Wed, 5 Feb 2020 02:42:01 -0500 X-Greylist: delayed 400 seconds by postgrey-1.27 at vger.kernel.org; Wed, 05 Feb 2020 02:42:00 EST Received: by nautica.notk.org (Postfix, from userid 1001) id AAAD2C01B; Wed, 5 Feb 2020 08:41:59 +0100 (CET) Date: Wed, 5 Feb 2020 08:41:44 +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 2/2] 9p: read only once on O_NONBLOCK Message-ID: <20200205074144.GB16626@nautica> References: <20200205003457.24340-1-l29ah@cock.li> <20200205003457.24340-2-l29ah@cock.li> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200205003457.24340-2-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 proper way to handle O_NONBLOCK would be making the requests and > responses happen asynchronously, but this would require serious code > refactoring. FWIW I do have some async 9p code waiting (it's been sent to the list ages ago but I never took the time to properly test it due to lack of interest manifested), the problem here is more the caching model than a synchronous issue, since in nocache mode (where this is used) there is nowhere to fetch the data ahead of time. If you're interested in that then please have a look at https://lore.kernel.org/lkml/1544532108-21689-1-git-send-email-asmadeus@codewreck.org/ > Signed-off-by: Sergey Alirzaev That aside, I guess, why not? Will take when other patch gets addressed. Thanks, -- Dominique