Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp404479ybm; Tue, 26 May 2020 21:07:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxggrt9pXC0WG/ZYr3NnYIR1DxFaUlYWfFjvd5+l8yZpd1x81elCp4aEnzilOwa1tJ2anc X-Received: by 2002:a17:906:d043:: with SMTP id bo3mr3895263ejb.409.1590552467594; 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=KC2rvs6wLQRTgFW5Ta7sGiR5s4JnRiu0uspSceQEPLHYrYbu6qixYz07voHeA7zB8T 0v+mqn2QWvuMjCDj4ElHfvsR9KRD2Ys+Dbhra2nywB8XL2xf4VmIp3nS+VzEvE6Iy8wt PlBphigRbNHcFj4t3nynzxjVcVq9OPBXegh8fXmh8k0r84wW/s7r79hu4nkM7vH8KcJ4 6256lgebj0LEevnrfJZnShTFO9FFUrPTuSez7YP57GJ0XGYjFm6GKSK+uynvcdB4NyVV VdYXsLPOhmpJZKtfoN6oMW40gYnbZhO/IfNX8Og7aCpuHq7lclqlUmpkFClPddWzndzL ty4A== 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=zZVgy2vaY7jEFsggwCG3LBMwvCBMjEaLZHkHxTnDDvk=; b=pTWyp9JPDqN6m5qWW04qqGs09C/Gkkt5VGr23akIZgvsR1B+KUg370hEnjeGBASIIx 0/fxIC/9uX/DQBGUdH+Zbzs1acMNaUtP36lVeMuxmF6tJJoaq3gs1TkzqBwfCbU8qaM2 Gz0AlkLLQzum2XN5u0EpQKBHWEyH1Bb3U7BRU0eOYX2LxDUzJInYgpjYPryMsREn3Mch NFBaxl0nr8MmEqDI1G1i9Vv5ddvnorexoj/DDFe6li3s20levz6PUesguNrPoVeJdhyn sS/Ih7+WzqL4zY0zAPcJtWLUYitWKlIBihyJMQPx/BCT5cZe7WwjlEbpZqNoT0P551jz muhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=K9gsZ8zT; 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 n20si1158505eje.640.2020.05.26.21.07.24; 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=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=K9gsZ8zT; 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 S2389604AbgEZWBL (ORCPT + 99 others); Tue, 26 May 2020 18:01:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389442AbgEZWBK (ORCPT ); Tue, 26 May 2020 18:01:10 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44DEEC061A0F for ; Tue, 26 May 2020 15:01:10 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id ci23so425120pjb.5 for ; Tue, 26 May 2020 15:01:10 -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=zZVgy2vaY7jEFsggwCG3LBMwvCBMjEaLZHkHxTnDDvk=; b=K9gsZ8zT3cxt3GfgIQHanpf/B7CYXSinl0fcm7TRKezmf7jNWFWuXK+2GFdvo43dDr of6KBrANKEoFtQEfW+djWPeH0LH0Zm5gZVqc5NlYGuR8lsDDUg7oBlRqifrDnq48XVov upxTuDkTmsiG1WqlkzqjLLUjlrUNGDYqVlHzuP6bFTEV2/moAaELS2MB1SlvtcOat8mW 0JI/GSptTLODrg0ShTKIf4XF/8jQEDrlqDGYM9Gp71cATmHJkoAYvxo9V1kYEFn3wmFb 8cxmiU5tvOI7O2/Z7M3F2d7B4v1eVkWH/NXTE+aCVDQHPP7DS3JXcwP0CA8UziWFDWE8 pISA== 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=zZVgy2vaY7jEFsggwCG3LBMwvCBMjEaLZHkHxTnDDvk=; b=BECuVi9kZA9K4qQP1H/5iMOMiIEI9eJFVP/41onWnd2W+ChvJgy00KCpADwMKIpY6E sVzuDCCoSOdUQadcYmW3xQZnz9agbSoHw3PVg+XTHmeekPKQoaM8QyQuNHT/umCssR41 78txYZyu43+sMu3dEJ3fPwUPYezF4fcNaQufmFSLx66kyfXIdrFLO+1tcQeDeeLa+mGf wO6ctqUrE88kd9IHcvKVlfRmJbUOfPFwNpfxE5EZGmutd8xrtrvA8TgtXfTTPl5eRcvI 8zIgtZpHdQwQu9quJVv738/7EyEwkioMg/3E1LtEvy0OgeuuMGem+MldaiEXsljFrKNm Je2w== X-Gm-Message-State: AOAM532XqhRFkBu40n1SpYrtlXCzoIs4VV6ebMZZMrWdoU1EpdoxJzXk uzdYIC2PqcVVjTc3PFm6niKxcL7/e0SDYA== X-Received: by 2002:a17:90a:8404:: with SMTP id j4mr1339430pjn.12.1590530469655; Tue, 26 May 2020 15:01:09 -0700 (PDT) Received: from ?IPv6:2605:e000:100e:8c61:4922:2226:8cd7:a61e? ([2605:e000:100e:8c61:4922:2226:8cd7:a61e]) by smtp.gmail.com with ESMTPSA id d195sm442643pfd.52.2020.05.26.15.01.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 May 2020 15:01:09 -0700 (PDT) Subject: Re: [PATCH 04/12] mm: add support for async page locking To: Johannes Weiner 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: <20200526195123.29053-1-axboe@kernel.dk> <20200526195123.29053-5-axboe@kernel.dk> <20200526215925.GC6781@cmpxchg.org> From: Jens Axboe Message-ID: <152529a5-adb4-fd7b-52ac-967500c011c9@kernel.dk> Date: Tue, 26 May 2020 16:01:07 -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: <20200526215925.GC6781@cmpxchg.org> 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 5/26/20 3:59 PM, Johannes Weiner wrote: > On Tue, May 26, 2020 at 01:51:15PM -0600, Jens Axboe wrote: >> Normally waiting for a page to become unlocked, or locking the page, >> requires waiting for IO to complete. Add support for lock_page_async() >> and wait_on_page_locked_async(), which are callback based instead. This > > wait_on_page_locked_async() is actually in the next patch, requiring > some back and forth to review. I wonder if this and the next patch > could be merged to have the new API and callers introduced together? I'm fine with that, if that is preferable. Don't feel strongly about that at all, just tried to do it as piecemeal as possible to make it easier to review. -- Jens Axboe