Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp2506661ybg; Fri, 5 Jun 2020 15:58:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZnirjkuFLvndwBsaVFt7ZgJIym2Chmol5WcGPYQfidkqR4vn9pAWjRS4u8W9seqAZ8IwH X-Received: by 2002:a05:6402:144c:: with SMTP id d12mr11741043edx.386.1591397938229; Fri, 05 Jun 2020 15:58:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591397938; cv=none; d=google.com; s=arc-20160816; b=W1ZdVtv6qc6FxTkKI/Tzx6lnv6MGv9vKPgUZahUWYQDAJuvagcrXlDiAMYOw6jNn6l eBhDsPYMHhmzVePWWpQSHScdKcni5cVnfiqzqmyahwz9R3rCR+jpxnlr4kTfSaRZzwx3 mGxkiGjmlCX7hOKfw1L6+pln65fn7tErbKHa6rb63tILq7OFjeiY7Qh/UIXFzWiCvZwF NtmYaecgZF0P+tR84MCzKnhlVXFzzZESQ2gIOEpigXorP06MOMmZ5+l2gnSvtCLxdl43 5BvBm1jGkbW1lnNiQ8XwymCVnPWWDur4SFBxwkU2g4ptIZM+k+LBYdtVtkB6gKu/zmV3 7wvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=w94Y30Zj7mgg0jm3gA8QPbDqP4Kye5MwiIglsO9uWtI=; b=Ze0VtdEkBifT+FJzWlCq5e3CU6ZGc7cshFLShpZII9OLqrQhKENGwxh1q7oku1bLoJ K+FDoT352nweGeXdx5NzRxhqNpRamZZQhSze+HD6/Euj9208wjfb0IdxIa7wMtNRAnJG jCnG3qJDgKhQjhSbTh67wSpF1vILDF7Hl5UmI2n4J9RcGSS1XS6j0OCDZO+9k+PbwFMj ZStNM9YZK4i2/NJshzYuntK9LqlrbOl2bA2zBk19MdhlqqO2HoP1g+oyblYFMykh1tOm DCXHmbAoZhs32PbW5ec8b06N3IGrxdSe9K1saK+E4Ww+bclkga02UY/8MJ70AqNNrjMs JA5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b="SoCIgu/X"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t12si4443989eji.88.2020.06.05.15.58.35; Fri, 05 Jun 2020 15:58:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b="SoCIgu/X"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728374AbgFEW4v (ORCPT + 99 others); Fri, 5 Jun 2020 18:56:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728330AbgFEW4t (ORCPT ); Fri, 5 Jun 2020 18:56:49 -0400 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6747C08C5C2 for ; Fri, 5 Jun 2020 15:56:48 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id o6so5864321pgh.2 for ; Fri, 05 Jun 2020 15:56:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=w94Y30Zj7mgg0jm3gA8QPbDqP4Kye5MwiIglsO9uWtI=; b=SoCIgu/Xz1pn45ICdQTezePAt9VI+dO5XYvTbmNXVHOiE53+A6rPMVa213jkfsJ39a LyAXUdrHq6iqzCkT0bk0V2J/7eqrlk4LIyLaFMAMPDCqFtbFlBA4wAbmnsWF03+49az8 O9yFCNlzsb14ItloIGFVUj6RvfIJ7elammovrwF54k25auCB8yOEaC9KbD/o00k0+/Fr tmG00Y/BDUgsGMOIfM+V6qI2tBNv4b23G693sbHw+5o7VjwFm6MM1Vq2e2haMuTlYvV/ 3bXNwBgK/K5qMfdhIK13E6QarityB6y61tyDmarToflyM+MxcMXqfqbtMiD01DL6MG7z 88pQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=w94Y30Zj7mgg0jm3gA8QPbDqP4Kye5MwiIglsO9uWtI=; b=FRNHWk6hIoTkrBTY4TTTtuQlpvXIS4dXv6iPoUzCwd95objY3frHuBt7jBpur98OPH idJ3zdc49/hAUfcqEd1mpICRMxr9310axwEp2ozXSGBVCt7/U+qzjt4VFHHEt7qaXs3+ LDhGmBeF7faYpnpVSpVkf2fKIy9hD4FdCMvJwoB0C4QWPpbJtNLO/NJonCO7n5TxqcO8 wzG+DlcYBZ4IeGc+KMmeFHnnH6Jn8zYheafvBx7Fgtcir/bPRTBx3K5QX3E6VNxuU+sD 05+uzZhNDSti1AycJ8LbXs0+S1QXjJ6nScLVz16UecCws3NoC7CabfigAb7Gc2SQy/+j MPrA== X-Gm-Message-State: AOAM531ub8eqd3upcpifae8eMaPF7UOHSt2AylcWK5aYvanwlOQKZiqV gGEducawjiAg8310AX6g+F6H7w== X-Received: by 2002:a62:4e8a:: with SMTP id c132mr11145162pfb.22.1591397806892; Fri, 05 Jun 2020 15:56:46 -0700 (PDT) Received: from [192.168.1.188] ([66.219.217.173]) by smtp.gmail.com with ESMTPSA id q65sm581373pfc.155.2020.06.05.15.56.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 Jun 2020 15:56:46 -0700 (PDT) Subject: Re: [PATCHSET v5 0/12] Add support for async buffered reads To: Andres Freund Cc: io-uring@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org References: <6eeff14f-befc-a5cc-08da-cb77f811fbdf@kernel.dk> <20200605202028.d57nklzpeolukni7@alap3.anarazel.de> <20200605203613.ogfilu2edcsfpme4@alap3.anarazel.de> <75bfe993-008d-71ce-7637-369f130bd984@kernel.dk> <3539a454-5321-0bdc-b59c-06f60cc64b56@kernel.dk> <34aadc75-5b8a-331e-e149-45e1547b543e@kernel.dk> <20200605223044.tnh7qsox7zg5uk53@alap3.anarazel.de> <20200605223635.6xesl7u4lxszvico@alap3.anarazel.de> <0e5b7a2d-eb0e-16e6-cc9f-c2ca5fe8cb92@kernel.dk> <20200605225429.s424lrrqhaseoa2h@alap3.anarazel.de> From: Jens Axboe Message-ID: <0179d0bf-0b01-3f05-9221-654a00f0452d@kernel.dk> Date: Fri, 5 Jun 2020 16:56:44 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200605225429.s424lrrqhaseoa2h@alap3.anarazel.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/5/20 4:54 PM, Andres Freund wrote: > Hi, > > On 2020-06-05 16:49:24 -0600, Jens Axboe wrote: >> Yes that's expected, if we have to fallback to ->readpage(), then it'll >> go to a worker. read-ahead is what drives the async nature of it, as we >> issue the range (plus more, depending on RA window) as read-ahead for >> the normal read, then wait for it. > > But I assume async would still work for files with POSIX_FADV_RANDOM > set, or not? Assuming the system wide setting isn't zero, of course. Yes it'll work if FADV_RANDOM is set. But just not if read-ahead is totally disabled. I guess we could make that work too, though not sure that it's super important. -- Jens Axboe