Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp291163ybm; Tue, 26 May 2020 17:14:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEG4mtk35mIaUAn401nz35u6GgShQPMrYUifo6oWuyz79VEYtq245GzuHGE5ycsf61ciqY X-Received: by 2002:a17:906:eb44:: with SMTP id mc4mr3310586ejb.234.1590538452904; Tue, 26 May 2020 17:14:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590538452; cv=none; d=google.com; s=arc-20160816; b=tRBp9beDoZxXiTSKTClBNoXTmOAoSxZXq3q1qLiQYPdq7ZUHY3ivlpnTNaz0i3NgwX 7pgcXGlq+G0/KYOJHllUCLR0tZ7oThpgLtBdenFD/HYNfcrCQclauqqCkfuRrR5j4Fyp KDtWo7JcgCz9KQKImGS3vGVr+uJWcwkEPZhtnrJGC/tJAqBckgMnBnb4XHoBdldq0SGA YXtDkbtmKP5iBfUQlq/2Dz5J319PQJcWGOXuy3aarzjwt/PwYQm5JgTFUUme4BWAnYtw 9b5NWaNtja5T5twK4MSC0h0aWgmmMLDdVK9RCWYO3H1XhSUAHFDBUZ//mNlIpoX0hGUU 851g== 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:date :dkim-signature; bh=grxbOYNpOqxM7JP5izyFEjnzTirkS5+MQpdVDhkVv6s=; b=xTuygd2Si7Je1NFjO9y97HS1ryDeTQjSYwHsq+kdL4pWo61wp6DZeQ3JUd5hw54KGN AJDsNpmJ/aNk3ZT6squln9K6zTHg5Hmlu+ypRaocHghSBUTF1saf+K3W0kXauByl+1pL +bmIUAbyoAWVc6QqrCNXmuRKNKDX/z5zOZvj7rhhqvqrf9qvOkIg+GTSEZjRkTD/M9iW CSK2leca7Loik3emHPx5PxE9RIcSPG4CMdMes6ZPH/f2F6H3EhGV1H8VGoaPUW7jeAa6 aa4ZFGFEHGmscDhOPe85qRVa+DZoi0ZeIjLBdnFa8Npgyiy0DFGovcmmodzg/oqyAK8N aNbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b="SK/j8/sB"; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q21si52416edg.563.2020.05.26.17.13.50; Tue, 26 May 2020 17:14:12 -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=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b="SK/j8/sB"; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403939AbgEZUqT (ORCPT + 99 others); Tue, 26 May 2020 16:46:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403895AbgEZUqS (ORCPT ); Tue, 26 May 2020 16:46:18 -0400 Received: from mail-qv1-xf43.google.com (mail-qv1-xf43.google.com [IPv6:2607:f8b0:4864:20::f43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 907FEC03E96D for ; Tue, 26 May 2020 13:46:17 -0700 (PDT) Received: by mail-qv1-xf43.google.com with SMTP id f89so10164318qva.3 for ; Tue, 26 May 2020 13:46:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=grxbOYNpOqxM7JP5izyFEjnzTirkS5+MQpdVDhkVv6s=; b=SK/j8/sBEAECUReC3/26qb5WYBKgJusmM4Bi0ypDM/Zohzcal6XacR3hCU754mhVtt E/5T4evfDsYZZhA9Ukgqn71YcrmQhklo/ouZh7stq4wCar8JR0/8bulocC1KxQxwmqk3 DDp4qVL9jeoL9CohXbQhdUV/7gnfjQAqnufAqXJl5p1ZSF5aNK8Xc0r/slhNtqDf96z7 RPlr9aVuPCFMtPtrndIWOuD20FaYhurPZLBbVrBcYvb4pSG0il+Tfmct4CaGWVG06Mc8 HQMn28HfZJDmqy7v+pNpgsdZwJeG0NcquoKR0QGCX0ZPO54EuyQMmtsgW7QGQr8jRLP1 hbNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=grxbOYNpOqxM7JP5izyFEjnzTirkS5+MQpdVDhkVv6s=; b=O2liNjza7n+6xVtU0wUobxJxGVcTBJAeFJaFiY0C/hiUpR0lR0XvEGN9M1F0rg3HGd fm5W3Y4uYSRfQz/av4LhdN1ulN+lmaWAklREKBKwp6x/V8Ov0skzP71yJV7hwQjfnBpG JOD2iHQAckzADFKts/FV2kFmlDTsX308cDx+UsuxGDWFpvmXFFp0ADFu3x17fyAw4IF8 bl/uMSikWbggRxZnPBpPBdrdhehbgB2zYK3YWDvarqhVMB1Nflz3RT93xsVikmLV3NNw C+aF8MdVSqwsjJPYLZPyIyEBr3STrt6X7m0Xjgb1PLdv2ANWP8ZwGoHMG73lxe/5cvTE Th7w== X-Gm-Message-State: AOAM532xgnHH/xiwY0lpJwoS7PwoQUMcevg1TICjO8JzILJJNVQ3Jo+k 3STrhxjRf2iKn3UuDgGSTUU4DwbclqE= X-Received: by 2002:a0c:ffc6:: with SMTP id h6mr8896151qvv.213.1590525976662; Tue, 26 May 2020 13:46:16 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::1:2921]) by smtp.gmail.com with ESMTPSA id n184sm658331qkf.0.2020.05.26.13.46.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 May 2020 13:46:15 -0700 (PDT) Date: Tue, 26 May 2020 16:45:52 -0400 From: Johannes Weiner To: Jens Axboe Cc: io-uring@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org Subject: Re: [PATCH 02/12] mm: allow read-ahead with IOCB_NOWAIT set Message-ID: <20200526204552.GA6781@cmpxchg.org> References: <20200526195123.29053-1-axboe@kernel.dk> <20200526195123.29053-3-axboe@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200526195123.29053-3-axboe@kernel.dk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 26, 2020 at 01:51:13PM -0600, Jens Axboe wrote: > The read-ahead shouldn't block, so allow it to be done even if > IOCB_NOWAIT is set in the kiocb. > > Signed-off-by: Jens Axboe Acked-by: Johannes Weiner Looks reasonable. Especially after patch 1 - although it seems that even before that, IOCB_NOWAIT could have occasionally ended up in page_cache_async_readahead(), which isn't too different from the sync variant except for the range calculations, and may have blocked on IO submission in the past.