Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp4152144pxb; Sat, 5 Feb 2022 05:15:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJzz/WfdG54BBwbLubkOy/jMHfAbeIZHAmn3Js/k5g1yLCiUnaY5m5lnR3VOxeE9Hp2QMeRV X-Received: by 2002:a17:903:249:: with SMTP id j9mr7915527plh.95.1644066904860; Sat, 05 Feb 2022 05:15:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644066904; cv=none; d=google.com; s=arc-20160816; b=vtS75iFrUMXrBFHoOLZPLauVM01+N59ZSE5GZOm7KeoSdgytg0wQJaOv5zhpi9eAYh U/Dpf66e2yrffybcnJT6sXBFmwUvyyNdFJCysoVh+dbOGgjKZnmLgU6CIQ4T/PeCLitm yHI+8M7b55eBr0luDT9vwVczDlVdaNlWOptWYi2RmJxTFrBnLyjoDk3cA7MTK+tho1en HTqL9dMZrSQOVqHcu0TBFFucphk1acDF3yNe1TODtGLUq2sEPzmd1xMUbxr9WKh4MdiW vGc4Vu3BGeP6ZyedVNPb91bkGZcd2e85TjhKzSJ339nGvsxQ1CSqgDBlB6YYi4F/DV/n C6RQ== 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=L9MWc8UYxZnjnohmZnAuC5FiqjE2vmDPkIzVES+QO4s=; b=sEpI+2vtetSNC7LmJLBU9852xaWa6V7KS/u0l5TnI1iYWwQP4WLMZTJXBy6pdKaxrs 7JaeXS5cvehy7igRh5xD4S9GAvhqzdLdB42tx2lXqUW38YAKw8YtLyi4XyV4kOMzbWgZ CYRAkNWaoJhP+ymiBE6G8qcqiM/WxlFF2X5eIpYmw4T3rZUr3IMRjvzUxceapnX/gAn4 G/2Sm7xRZ09g7oJDhXgjO8NTBM4QoWfECMAZjrlA4eOlUpjNSfWuwb5+OGzybvoSJ3Wi QgRnV7b/doSb9ldxLh+a6L8vZBu05CI6sc++6adbK+rH24GtmijCoN8AWC6LtUco21Y3 BW6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=NvNnFAQX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c18si5428555plg.131.2022.02.05.05.14.53; Sat, 05 Feb 2022 05:15:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=NvNnFAQX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350891AbiBCNnU (ORCPT + 99 others); Thu, 3 Feb 2022 08:43:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350887AbiBCNnS (ORCPT ); Thu, 3 Feb 2022 08:43:18 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6A4CC061714; Thu, 3 Feb 2022 05:43:18 -0800 (PST) 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=L9MWc8UYxZnjnohmZnAuC5FiqjE2vmDPkIzVES+QO4s=; b=NvNnFAQXNhVp4BKwlT1g9pXVlX i++xG4vlBUFNHxnL4GjhrzQveqhT1mAiSRmm5iK5SvqJF/c0HLndoNz2WHwAGPHCxoi2KKGCe2MpD axH1YG3ygbSCv8eVb5ahb+RY6+Bu/jfle+dYzF3DUhoxJs3Lqm1TDr56/Rn4OhQYstWEt/H5G7BX9 QZVlChvvAWkTxENz9Tu8zXfoZovZZ8DSmpbF5xplo5xbiT71v7zrMrEzVFcuXBiF3YL+PgrLs879Y 7PLWZUFiI+zdGr8+0Ndi0m2NDmPpqKNRYfAA0yKMK5IGaKxlUuN0GEWwqr1LgNOQL13CE2fonU9fV YJVOLC0g==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFcOA-001Sld-Su; Thu, 03 Feb 2022 13:43:06 +0000 Date: Thu, 3 Feb 2022 05:43:06 -0800 From: Christoph Hellwig To: Jane Chu Cc: Christoph Hellwig , "david@fromorbit.com" , "djwong@kernel.org" , "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: [PATCH v5 2/7] dax: introduce dax device flag DAXDEV_RECOVERY Message-ID: References: <20220128213150.1333552-1-jane.chu@oracle.com> <20220128213150.1333552-3-jane.chu@oracle.com> <45b4a944-1fb1-73e2-b1f8-213e60e27a72@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45b4a944-1fb1-73e2-b1f8-213e60e27a72@oracle.com> 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, Feb 02, 2022 at 09:27:42PM +0000, Jane Chu wrote: > Yeah, I see. Would you suggest a way to pass the indication from > dax_iomap_iter to dax_direct_access that the caller intends the > callee to ignore poison in the range because the caller intends > to do recovery_write? We tried adding a flag to dax_direct_access, and > that wasn't liked if I recall. To me a flag seems cleaner than this magic, but let's wait for Dan to chime in.