Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 026D4C433DB for ; Tue, 23 Mar 2021 12:10:31 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 590D9619B1 for ; Tue, 23 Mar 2021 12:10:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 590D9619B1 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id BCDA46B0185; Tue, 23 Mar 2021 08:10:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B7D9B6B0187; Tue, 23 Mar 2021 08:10:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A45656B0188; Tue, 23 Mar 2021 08:10:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0062.hostedemail.com [216.40.44.62]) by kanga.kvack.org (Postfix) with ESMTP id 8B4366B0185 for ; Tue, 23 Mar 2021 08:10:29 -0400 (EDT) Received: from smtpin32.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 4AF051801A231 for ; Tue, 23 Mar 2021 12:10:29 +0000 (UTC) X-FDA: 77951021778.32.1B350C0 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf21.hostedemail.com (Postfix) with ESMTP id 258FAE005F1D for ; Tue, 23 Mar 2021 12:10:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=BAJ7H9rbaesVAJ52FIx5l8TQ8yNHJhsS0hvfEGYQUV4=; b=rHKtKL9yxzZPSkAIneHebW4nIP ZOiy94rb0j/Ky8FxvesX4ToERFzmw6+YgNRNUzB+D8HF2DpvxJO86VgjLRP6UBw/pDMsuyiNGugjh 6Kpc2zuVdafeNiAmHJLcrZ+Rr5iacLl9rhK+350KfZ806UI+8l8zb08uxz8j+/l6v/PNi8/JfJGZM zRStGa0TfiB7Y1LIU8PEP80HUUEkNUItiSnEyO34wk+OlbixQ1Rpsv740JZxxd/4CSrIg3iggANAu Z9jErpLeIxoRWTvSj8TgPWC6LnyQ//RKnvCCD54+p7zYRjGs9++AwWnaWsGu3KUEOsMtxo4gwComd 44lrbj2g==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lOfpl-00A1WB-Ek; Tue, 23 Mar 2021 12:09:04 +0000 Date: Tue, 23 Mar 2021 12:08:29 +0000 From: Matthew Wilcox To: David Howells Cc: linux-cachefs@redhat.com, linux-afs@lists.infradead.org, Christoph Hellwig , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/3] cachefiles, afs: mm wait fixes Message-ID: <20210323120829.GC1719932@casper.infradead.org> References: <161650040278.2445805.7652115256944270457.stgit@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <161650040278.2445805.7652115256944270457.stgit@warthog.procyon.org.uk> X-Stat-Signature: 5i6bhnecmz4mw3xzh9ouyfp676roh6kb X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 258FAE005F1D Received-SPF: none (infradead.org>: No applicable sender policy available) receiver=imf21; identity=mailfrom; envelope-from=""; helo=casper.infradead.org; client-ip=90.155.50.34 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1616501420-823347 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, Mar 23, 2021 at 11:53:22AM +0000, David Howells wrote: > > Here are some patches to fix page waiting-related issues in cachefiles and > afs[1]: > > (1) In cachefiles, remove the use of the wait_bit_key struct to access > something that's actually in wait_page_key format. The proper struct > is now available in the header, so that should be used instead. > > (2) Add a proper wait function for waiting killably on the page writeback > flag. This includes a recent bugfix here (presumably commit > c2407cf7d22d0c0d94cf20342b3b8f06f1d904e7). > > (3) In afs, use the function added in (2) rather than using > wait_on_page_bit_killable() which doesn't have the aforementioned > bugfix. > > Note that I modified this to work with the upstream code where the > page pointer isn't cached in a local variable. Thanks, the minor modifications to the patches (changelogs, fixes to apply to upstream) all look good to me.