Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp404477ybm; Tue, 26 May 2020 21:07:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGw0W7Tc8769rdAbmtESHVxuLBKyIHYOyoJGVY8QMZNZk/uO3KF7ClgceuntBi4TbpmfQw X-Received: by 2002:aa7:d487:: with SMTP id b7mr22569383edr.351.1590552467262; Tue, 26 May 2020 21:07:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590552467; cv=none; d=google.com; s=arc-20160816; b=wzLsaBk3x1zDorcCbW5HPcgC379YxSmjwriIjyWXknECiMGfdjhdzfzlAylGpD6jcT PvSzvvRkkrudEVoM3KCbrNCqTAp8mzY09QWIgTkOTYr9MUMMTNvAPC7J5b628rQ2xF8F SnAGmpmMkglRJ12A5ezD9Qmhz80wEdYmGUdzH2QRcYRN4Lfp6NDg8i0yjt1hgiraT1Yf CLTvUbOg3ls8GM/6uNSO9o4gMy1zq9OvFAHPSJs7SrSLZBIKmoMwjJEJnj+kS3GWbmUd PttUKjaU3n7S8TGOk5m2uiQjiHp2iCvmDDB9kmOgOMwxHM83TNWoucZonDYZFsV32Yxw xNYA== 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=ZwwzxO17+0f92xu+E65BbQScQx/AP5VwvKaIskut9zM=; b=QNJEuVOs4egAEmhok+FbBEBSShw8BUqO5C7DK8JZr/40OTOQwTVZFv0DLmzuqvxoH9 9PwNEPs48glsV7INIgIn7EE3APm8cpttLe4iSi+wKCZtCH4Gdrpbd4/oOJVKLjHS9wO8 5mpIvvBgD501zRWsNCdkJvx5FJAoKw+DWDUCctvZU+Jqe32CahTRHyBvgtAUumgCER5u SpAm3p0uIkBG78ytLctJuk3Qt8xk3t/kzbmXhN4zpSVglVBiAc/7h8c35VGFLAfBl9+g GE3VwinHrMAE9RceltG2/aOyFH4wKy6hZ3Y0V/pUxA4/AwkLU/jZw7QeKvbd1j7RoMAU SZiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=rFVM4x23; 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 j8si310176edh.457.2020.05.26.21.07.23; Tue, 26 May 2020 21:07:47 -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=rFVM4x23; 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 S2389630AbgEZWBB (ORCPT + 99 others); Tue, 26 May 2020 18:01:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389442AbgEZWBA (ORCPT ); Tue, 26 May 2020 18:01:00 -0400 Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51F4DC03E96E for ; Tue, 26 May 2020 15:01:00 -0700 (PDT) Received: by mail-qk1-x741.google.com with SMTP id w3so16897047qkb.6 for ; Tue, 26 May 2020 15:01:00 -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=ZwwzxO17+0f92xu+E65BbQScQx/AP5VwvKaIskut9zM=; b=rFVM4x23qV4X2fbjmMbDbfW8BE//O63dwEI83+nf9RiCn82u2vgmzBe6uxrjX9diHX Xis+D4mIpGZRy+VlXibr+nvav1bnmleWViRSlsBZbD6wO47YqoG+xJKzT0DyENfn2Cf3 6eH0qeuBR+szG69rgDH9mR+95W9t/Easz1XIfT4+usugiBihB/u2LH+4KhvPlPSr6Pl2 aJHuPtBN+BCaPr1W1q6XU+kLH6gjPHrEtOY6dFLu/uf9aVt8HRLBgSZGW2/0FvllyUIc dOIHqAcLpDPd/13wn4sX0h2UaZVOwpuQqu30SmaFsjuZkRUvfkp8ypGkNZ9dK7vl6fsD RWYw== 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=ZwwzxO17+0f92xu+E65BbQScQx/AP5VwvKaIskut9zM=; b=JbsegHLaojGJrP0gMzUwV0hUYl7CsJ8P57gMqvXn2Q/H37/NeIN2g8ssVQk+Aefi+e GmsGEYYNTyOCtutFpm9W5NHUlWUUAM1YozAX9nHHceH6p65eC/MvqJSfA3ePyJVuHv42 XSRtMiW+Y0NqMcUsbRtAIyel8gZE05gcJwAjDkO5csrr+BkADBZncuDTlQeBH+zaATDG v2KYLP75+Ktr2comkAr9fk56vkqnxohq76khsI9W9/r0wdzdNmi9rKkKJO90ysHbxocy wbFWueE65AL4tGR7lP5AnZMmdOsh9jxPPULzwowf2QgZjEb8fY5NkQVBbgpa4vB3hFfj H7tA== X-Gm-Message-State: AOAM5332UWwSnX/Gu4BCLWbZIlqgP5BbsrVMWJSubyoSrI3rtFYioJK/ YU3LGi7k+2j6+5Q4rPfBEfHkVQ== X-Received: by 2002:a05:620a:13b0:: with SMTP id m16mr1032459qki.292.1590530459566; Tue, 26 May 2020 15:00:59 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::1:2921]) by smtp.gmail.com with ESMTPSA id a7sm841053qth.61.2020.05.26.15.00.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 May 2020 15:00:58 -0700 (PDT) Date: Tue, 26 May 2020 18:00:35 -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 05/12] mm: support async buffered reads in generic_file_buffered_read() Message-ID: <20200526220035.GD6781@cmpxchg.org> References: <20200526195123.29053-1-axboe@kernel.dk> <20200526195123.29053-6-axboe@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200526195123.29053-6-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:16PM -0600, Jens Axboe wrote: > Use the async page locking infrastructure, if IOCB_WAITQ is set in the > passed in iocb. The caller must expect an -EIOCBQUEUED return value, > which means that IO is started but not done yet. This is similar to how > O_DIRECT signals the same operation. Once the callback is received by > the caller for IO completion, the caller must retry the operation. > > Signed-off-by: Jens Axboe Acked-by: Johannes Weiner