From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=213.95.11.211 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795191445; b=5GIr7P0I2vbx6+MaZHl6JJdt0wlfU337f4Ikrdwkxl/+mjb4LhJtvxvxgf8qiO3FD32O hS/SALYSD3/gTDk/33c4st3321jBdOyWo2zJf4vq4Koj3YqqS6MU4LeIJV+jjULMnu9BG V3Vp890w2HuWxDWk8Gcat3kVpFh0LN2mNnX3RqNqY4PYAX/4NdLvO/LTtR+DX350rUqQh kDhFWG51eEIU0GGF8pUDTKuuwK5C8YqoOYfNEYvuZ6Dt20yQ+AA6w8IwihG1TNo7uH/W8 fZ+z3ICyWecIBwp46/wJ5OhH6OIHsq6o9QH0RF7kYESzzMx3FCKVy/N/aJmBt1W+8KQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795191445; h=DMARC-Filter:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent; bh=7oWxZkJSIrIvDRuijxJDq8O8Wh3VfFr0MJdwdp0vWdE=; b=Vrr1lx/SrmEIHVr83135uWBcVVSOxj5zKZ8DtZgHiK/t1hwvRaSIzYPi3gRNhWzBLrAv W6xWy7i7kTO01dYTNVvH7e1o5M3kiPtTLDIe20wRGO3k0CpD1W/QSl9ylXXzJzriOj4kN xeEHZpmIybIDFepYw9TgLPP8OqLF2Yfh5z8HO9Z/Ka9qmWv7pDoTL00m/vWzXEVgN0g88 +yJfkhWUmwlgOJG68i+Cd+Py1DNkzBbn2aKvJn+AmU+nFqGdFet7td0ofIoJe9ZN+ffay VDZSIOLEKJQV0ZeHDjPfvuHqdYwa853JZnVEpN910iq7MdFu/8g8P089syVmedMhjAg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.remote-ip=213.95.11.211 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 58FBA606A320; Fri, 20 Nov 2026 16:17:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 58FBA606A320 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 095346732A; Fri, 20 Nov 2026 17:17:16 +0100 (CET) Date: Fri, 20 Nov 2026 17:17:15 +0100 From: Christoph Hellwig To: Luigi Rizzo Cc: Andrew Morton , David Hildenbrand , Johannes Weiner , Vlastimil Babka , Joerg Roedel , Will Deacon , Robin Murphy , Marek Szyprowski , Jens Axboe , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Luigi Rizzo , Lorenzo Stoakes , "Liam R . Howlett" , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Brendan Jackman , Zi Yan , Harry Yoo , Christoph Lameter , David Rientjes , Roman Gushchin , Hao Li , Matthew Wilcox , Jan Kara , Jann Horn , Catalin Marinas , Greg Kroah-Hartman , "Rafael J . Wysocki" , Danilo Krummrich , Jonathan Corbet , Simon Horman , Jesper Dangaard Brouer , Ilias Apalodimas , Willem de Bruijn , Kuniyuki Iwashima , Joshua Washington , Harshitha Ramamurthy , Alexander Lobakin , Christoph Hellwig , Jason Gunthorpe , Dragos Tatulea , Naman Gulati , Pranjal Shrivastava , Mostafa Saleh , Randy Dunlap , linux-mm@kvack.org, iommu@lists.linux.dev, netdev@vger.kernel.org, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, driver-core@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-api@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v3 12/25] block, mm: Support PISA for disk I/O and scrub migration Message-ID: <20261120161715.GA31401@lst.de> References: <20261109182533.3594984-1-lrizzo@google.com> <20261120010655.467825-1-lrizzo@google.com> <20261120010655.467825-13-lrizzo@google.com> X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261120010655.467825-13-lrizzo@google.com> User-Agent: Mutt/1.5.17 (2007-11-01) On Fri, Nov 20, 2026 at 01:06:42AM +0000, Luigi Rizzo wrote: > Extend PISA user/page-cache allocators to support O_DIRECT and buffered > disk I/O, gated per block/controller device through pisa_rx_bufs (read) > and pisa_tx_bufs (write): > > - Split per-node user_pa into DMA_BIDIRECTIONAL, DMA_TO_DEVICE, and > DMA_FROM_DEVICE allocators, promoting pages to DMA_BIDIRECTIONAL if > later accessed in the opposite direction. > - Upgrade pinned O_DIRECT user pages in bio_iov_iter_get_pages(), and > allocate/promote order-0 page-cache folios for buffered I/O when PISA > is enabled on the target block device. > - Add pisa.scrub_migrate to compact or demote lingering folios off old, > sparse user_pa 2MB pages. No, doing MM migrations in an (any) I/O path makes no sense at all. Can we all please go back to actually thinking about problems instead of generating giants amounts of shit code without the slightest reflection. Than you very much for your attention.