From mboxrd@z Thu Jan 1 00:00:00 1970 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9B1BFC433F5 for ; Wed, 1 Dec 2021 19:45:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F0E596B0072; Wed, 1 Dec 2021 14:44:55 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id EBE506B0074; Wed, 1 Dec 2021 14:44:55 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DAC0B6B007B; Wed, 1 Dec 2021 14:44:55 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay030.a.hostedemail.com [64.99.140.30]) by kanga.kvack.org (Postfix) with ESMTP id CC9A56B0072 for ; Wed, 1 Dec 2021 14:44:55 -0500 (EST) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 4C50C23AC3 for ; Wed, 1 Dec 2021 19:07:22 +0000 (UTC) X-FDA: 78870158724.01.B2FC14E Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf20.hostedemail.com (Postfix) with ESMTP id ACC1AD0000AC for ; Wed, 1 Dec 2021 19:07: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=GjHBl1+/CwPHKTVR/f8ORsKmJRUSdIW+S2uB+MujBiI=; b=wZESZkica5ceEZQ6YDd2YCeaJ6 +cw182OK6Ct7BeOeJ0COz5RCw4qLOpeMKU/V8lTZL+maVaJWEyRde8LuRji4y58dSl1RW4X+svdyq hH8mjmArSAuGPs3XX0uGcmmxHKFYxOU1MBdqVAN3KuTvq31tu6XG9Pox+fzRzVl/VW1Rgx4bj++rs wXZ8cnkaOPrHuiNBfH9fsu4NVZAM62/icFFLAzhTKzr4ZWKTw1My0PGfpXJj5cprO/lYQHOoy/6Gx l2Bd7Ekav8n/vvdnR0i8EiCvpcvbOa+8zNe1/mOtS85NxRMJjUzXX6QSh57Kh8zDhyj5Wx2QZ7Rgm GLXRP1lg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1msUwb-000aw3-T2; Wed, 01 Dec 2021 19:07:06 +0000 Date: Wed, 1 Dec 2021 19:07:05 +0000 From: Matthew Wilcox To: Vlastimil Babka Cc: Christoph Lameter , David Rientjes , Joonsoo Kim , Pekka Enberg , linux-mm@kvack.org, Andrew Morton , patches@lists.linux.dev, Joerg Roedel , Suravee Suthikulpanit , Will Deacon , David Woodhouse , Lu Baolu , iommu@lists.linux-foundation.org, Robin Murphy Subject: Re: [PATCH v2 29/33] iommu: Use put_pages_list Message-ID: References: <20211201181510.18784-1-vbabka@suse.cz> <20211201181510.18784-30-vbabka@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211201181510.18784-30-vbabka@suse.cz> X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: ACC1AD0000AC Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=wZESZkic; dmarc=none; spf=none (imf20.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org X-Stat-Signature: 31bwz46quuhi5osd3t65ts4teggps58y X-HE-Tag: 1638385640-964400 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 Wed, Dec 01, 2021 at 07:15:06PM +0100, Vlastimil Babka wrote: > From: "Matthew Wilcox (Oracle)" > > page->freelist is for the use of slab. We already have the ability > to free a list of pages in the core mm, but it requires the use of a > list_head and for the pages to be chained together through page->lru. > Switch the iommu code over to using put_pages_list(). FYI, this is going to have conflicts with https://lore.kernel.org/lkml/cover.1637671820.git.robin.murphy@arm.com/ I'm not sure what the appropriate resolution is going to be here; maybe hold back part of this patch series to the following merge window to give the iommu people time to merge their own patches?