Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B562AC25B4E for ; Tue, 24 Jan 2023 16:47:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234480AbjAXQro (ORCPT ); Tue, 24 Jan 2023 11:47:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233235AbjAXQrm (ORCPT ); Tue, 24 Jan 2023 11:47:42 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82ECB10F9 for ; Tue, 24 Jan 2023 08:46:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1674578817; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AzVI7y/XknPI0cUXSqe1BbmcfE0qXgoZKVccnfEMNGg=; b=GvuWkzkJLVSWTkcj9no1ip6641SEaDeZ7ttLVc4Cb9WiI5EsXju15q2n9KLgMOdvg3egdX uR8XK2T4TmxZB97k2LFT04NuHoa4A64IAkp8oVBfAEj9i0E8hWC1gJYqGPbxGHNU/ucJjn QgOqTStvjVWS3mykUcXHD63dRINdsGI= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-47-AQ5qJT1CN_a-Db6b6jKtPw-1; Tue, 24 Jan 2023 11:46:56 -0500 X-MC-Unique: AQ5qJT1CN_a-Db6b6jKtPw-1 Received: by mail-wm1-f71.google.com with SMTP id c7-20020a1c3507000000b003d355c13ba8so9469529wma.6 for ; Tue, 24 Jan 2023 08:46:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AzVI7y/XknPI0cUXSqe1BbmcfE0qXgoZKVccnfEMNGg=; b=ROSIX181UHT5fzuNEw9wS0vr9t7tEyZu6TiGykGfMJLBa1L+kebl8tV4N0vjzDhq1m je1x1BP1DZ8H+iuLwbHY96wW+TYC3cJxc1Kr/n4j0KnlfV7dzCzGLbBE8ry9UBg2E27o 2ktzQABdQYMQJ0XHTWvZDvuJoHvpHTxJ6gd034eAFyOgODMzzc7DtfW/23RnuyA6/ROK 314lqtoC3EyJvfU5IukhyXfKU3cvWwgunYoJ8mrNbDeMbrCEEe6H3w9onQYXXlBooxc0 fsdOhGjj7txpCm97adOLymCqGPqkpeWj9LVMOnsgNeZC7zahdb7pwgk2ySTju+T/3h/w rghA== X-Gm-Message-State: AFqh2kpaZ50yeqaWZrMtYFHx/R0vraRkW1ewOnEv1X05JYrF6jiIGPiV lDXSXnksHyRuG3j9JBEETsAgtVRw8AE628fG8XYzExgR9GzWbos/C78Bm+MU+XsUSpoByIeDePJ MY+ks402Om5zVgYWEFWNQoYBz X-Received: by 2002:a05:600c:11:b0:3db:162f:3551 with SMTP id g17-20020a05600c001100b003db162f3551mr24694581wmc.21.1674578814951; Tue, 24 Jan 2023 08:46:54 -0800 (PST) X-Google-Smtp-Source: AMrXdXsuq8kMWZJOxuD81FxqWA2x0JPKsdYTiKSGjyZW4md/Vl44YCClZdGliDY2lYz6DFu4PeNHYA== X-Received: by 2002:a05:600c:11:b0:3db:162f:3551 with SMTP id g17-20020a05600c001100b003db162f3551mr24694561wmc.21.1674578814690; Tue, 24 Jan 2023 08:46:54 -0800 (PST) Received: from ?IPV6:2003:cb:c707:9d00:9303:90ce:6dcb:2bc9? (p200300cbc7079d00930390ce6dcb2bc9.dip0.t-ipconnect.de. [2003:cb:c707:9d00:9303:90ce:6dcb:2bc9]) by smtp.gmail.com with ESMTPSA id d4-20020a05600c3ac400b003daf7721bb3sm13735123wms.12.2023.01.24.08.46.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Jan 2023 08:46:54 -0800 (PST) Message-ID: <2172496c-2cd2-a2c8-9ddb-cd7d56bcfc75@redhat.com> Date: Tue, 24 Jan 2023 17:46:53 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH v8 07/10] block: Switch to pinning pages. Content-Language: en-US To: Christoph Hellwig , David Howells Cc: Al Viro , Matthew Wilcox , Jens Axboe , Jan Kara , Jeff Layton , Logan Gunthorpe , linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Christoph Hellwig References: <2431ffa0-4a37-56a2-17fa-74a5f681bcb8@redhat.com> <20230123173007.325544-1-dhowells@redhat.com> <20230123173007.325544-8-dhowells@redhat.com> <874829.1674571671@warthog.procyon.org.uk> <875433.1674572633@warthog.procyon.org.uk> From: David Hildenbrand Organization: Red Hat In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24.01.23 17:44, Christoph Hellwig wrote: > On Tue, Jan 24, 2023 at 03:03:53PM +0000, David Howells wrote: >> Christoph Hellwig wrote: >> >>> It can't. Per your latest branch: >> >> Yes it can. Patch 6: > > This never involves the cleanup mode as input. And as I pointed out > in the other mail, there is no need for the FOLL_ flags on the > cleanup side. You can just check the bio flag in bio_release_apges > and call either put_page or unpin_user_page on that. The direct > callers of bio_release_page never mix them pin and get cases anyway. > Let me find some time to code this up if it's easier to understand > that way. In case this series gets resend (which I assume), it would be great to CC linux-mm on the whole thing. -- Thanks, David / dhildenb