Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1400249pxb; Thu, 4 Nov 2021 01:23:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwT2oqgZGxgKY146I/Tk+0FoGlxpQUla6oojji646Z4P0xKCXIdFpqUMPuW60Vil4sWE4XG X-Received: by 2002:a05:6e02:18c5:: with SMTP id s5mr835437ilu.193.1636014232764; Thu, 04 Nov 2021 01:23:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636014232; cv=none; d=google.com; s=arc-20160816; b=Mwr2gmc7nZ5WxrBTlfmklnO7ZvDvHI8YbDrZpC90P1Zt5HnJ6AhLeN+LT5JngUWEsV XyI/Heqh3ZB8TZ6kPinwVsBpuP989qsGJaSkgbiWcNLQq6Obf1GBVUx37ZWu8ty3UgDu wNX5pGrdDyitAJOrAjRjliwBosbEQW4M2GROfcl2lTrX7EFgRGRv9R8F5I8/u09cZeSm eNrHi5rG/tZ0vNoPDiuYu8Ot9MITBFUxwQeNf6KrQjs8CgUA1A6uvjMgV5gudVlAVGSP Db0JOM8M6Awnc0qLSoqvTzzElNA6WehRdmlIsciwtD100Nx1K2ewRHu7FWAOOETe9a7L LjnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=NUHSkPZKdCeYjtK4gysRgJLuWX7RQNT/5Sx0eDpMchA=; b=yO+UNO+pO/46RMX7WMOB4UIA7tDUkBZqb0vm8f+9OxYbEWUL5BXg8t4CneYjLC7Y2u FrKoJz/cIU30LEgp9ES7sHSN5QhDi+xmZvd9fTYHbDb7otBe/K1D0U8UPQEcEU6xWbRB uMTu6VdxbUTYuOmnXRXghgzSaHtccYXZV37N/fGaCEso+eNhBMP+YtRe3VNxwhZAqst3 eSYFr4cfEMsxynPgiy6q/LWw8JyAw7iXP4ivBQf6dsmLzaUKOMgftFsz55KUNnCl7L1g lNU2ifOqXBuh6ru9xCjKXhDRQUz+buoTTU73LAXRSV9YweWqXGjzSK6HQZMarwF85Ua1 KOkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=4xLVQ8os; 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 q13si5731833ilm.150.2021.11.04.01.23.40; Thu, 04 Nov 2021 01:23:52 -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=@infradead.org header.s=bombadil.20210309 header.b=4xLVQ8os; 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 S230404AbhKDIYh (ORCPT + 99 others); Thu, 4 Nov 2021 04:24:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230084AbhKDIYg (ORCPT ); Thu, 4 Nov 2021 04:24:36 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5FE3C061714; Thu, 4 Nov 2021 01:21:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; 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=NUHSkPZKdCeYjtK4gysRgJLuWX7RQNT/5Sx0eDpMchA=; b=4xLVQ8osQ9u7MwgQvsr3sqrJeD 9TeLt91+NwT0iLut4BXjRJBcxw0lMeMSqiRjYh4XgkE1PQrRNl08jVT9JyFpmlQhBpgZwpNzC7xMI hiC6iZUM3mkSSQST7ZxjYHy/5jXDxo6QvvmqFEvKsvTfyAex0tERVVtpRaOXUU61g/oG5RkjZoFeB TZrKDRAjsajsqkt0olW0LX+JQ39We/7NFqZyULyX2fndDMXdWifE2lk1vC5WUjxhfmhGKc/1zjGn3 QYyApkpEieQ+jUMzVI3qcKfDa/jRt9Z2WGjepJzjmpfamFUU+6n6un4hPFOb/Yv5OXa76e+SB76Db LPxk7IwQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1miY00-008HaJ-Ih; Thu, 04 Nov 2021 08:21:28 +0000 Date: Thu, 4 Nov 2021 01:21:28 -0700 From: Christoph Hellwig To: Jane Chu Cc: Christoph Hellwig , "Darrick J. Wong" , "david@fromorbit.com" , "dan.j.williams@intel.com" , "vishal.l.verma@intel.com" , "dave.jiang@intel.com" , "agk@redhat.com" , "snitzer@redhat.com" , "dm-devel@redhat.com" , "ira.weiny@intel.com" , "willy@infradead.org" , "vgoyal@redhat.com" , "linux-fsdevel@vger.kernel.org" , "nvdimm@lists.linux.dev" , "linux-kernel@vger.kernel.org" , "linux-xfs@vger.kernel.org" Subject: Re: [dm-devel] [PATCH 0/6] dax poison recovery with RWF_RECOVERY_DATA flag Message-ID: References: <20211021001059.438843-1-jane.chu@oracle.com> <2102a2e6-c543-2557-28a2-8b0bdc470855@oracle.com> <20211028002451.GB2237511@magnolia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 03, 2021 at 06:09:57PM +0000, Jane Chu wrote: > This is clearer, I've looked at your 'dax-devirtualize' patch which > removes pmem_copy_to/from_iter, and as you mentioned before, > a separate API for poison-clearing is needed. So how about I go ahead > rebase my earlier patch > > https://lore.kernel.org/lkml/20210914233132.3680546-2-jane.chu@oracle.com/ > on 'dax-devirtualize', provide dm support for clear-poison? > That way, the non-dax 99% of the pwrite use-cases aren't impacted at all > and we resolve the urgent pmem poison-clearing issue? FYI, I really do like the in-kernel interface in that series. And now that we discussed all the effects I also think that automatically doing the clear on EIO is a good idea. I'll go back to the series and will reply with a few nitpicks.