Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1366786pxb; Thu, 21 Oct 2021 22:40:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+WfLUBrSj6XLWOs5y0AWvLTv5BJ54wenuv4YhDssdcAnkVLkCRucOaQD7p1KFvKakzrsW X-Received: by 2002:a17:90b:1645:: with SMTP id il5mr11806198pjb.158.1634881209632; Thu, 21 Oct 2021 22:40:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634881209; cv=none; d=google.com; s=arc-20160816; b=M3VFB/2uoCnoJZvrUIS06eicHVGDdjKwhoNHhT4x3EzXRfFakEWrNRqNkhetmiRs5L +WOvr4zBkXHFkQRPIP55GrvGO+mUAI5lA79+0AhTPHqotkWwH5eHKjxa8OLbEYeJq+bi 5egbe74HcPZfSd1iCq+FL+XUH6diiqzv3Y/hb+TgsT4GRobt8SsZM956asYj3ABzAIIZ ajMBPpCQRUWjeLiUqyBX9DDKJzjoPyHUWKIctBGOltf9/pyK/HIUUYvwm8t3JpKqUjWi fluyzBC2lgcQ1bu82TT6+Ri3EDHHm7Nx7inIFc6JUyt8uXWK854jXJ0bThiqwIzlIcvs Z+Ww== 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=+YDMPVpxVm8p9MUlUXzErZxvxROH6gniSaBDcG7u9TY=; b=UlBje5yAoK3/mmTI7Dxpw8ZFBNwZc3EkV3SafyotbMVgvV2KyL35834j0h/xWTGj1z QuVgJBlaUX1HbWFX6gNTkbVYC7PdJXIwBO2Ttvtqmr0kTIhXLGUk7cDKf1j4PpUY1hJs zLY5Ey3mSSVohexk7wC5uzM8KRMdrSrgaks2mDEiU5oAyitMsW2r7ht4NlXKz+XIHAhw EiZONxa8muSMXXVJhvqUbxXlYeEhDjaeimH5LY1M4O4/WE5RX1BzGeyLUIh/zzsXK0LG jOp95P1OF1CahbkAl+8zvXgFtg9JG83zyOKCg1kDy7N8vPE4HHyrJ/Tdq0rplWdWy5aR O4aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="HeJKI/GV"; 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 n13si13289515plh.1.2021.10.21.22.39.56; Thu, 21 Oct 2021 22:40:09 -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="HeJKI/GV"; 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 S231269AbhJVFjF (ORCPT + 99 others); Fri, 22 Oct 2021 01:39:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230193AbhJVFjE (ORCPT ); Fri, 22 Oct 2021 01:39:04 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0178FC061764; Thu, 21 Oct 2021 22:36:48 -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=+YDMPVpxVm8p9MUlUXzErZxvxROH6gniSaBDcG7u9TY=; b=HeJKI/GV+Bphar28aSxvNfHN7F PLzh2q5WkuWMqVzrxjqAwTTPxYsEElxMc9Pn1mbMhzYkNtzB5c0RXFEXR8Fi5DaRlyo9x0F2RYbxM qeCZS+ZThU9uOKaedUc1UT1ZsvdTPQLDWj3YEXIg1dVlcKr6PjPFlhSLlydBXd5iFQgsKmj6GyOKt 3AEA3Gwqc3oZ6ugPu97G4Nv22shMJOEnMMXUuaTH2rCt6TIIlAnl+oRmsvZBq3mcZnKMqgwR3rV6X Wj3/HI6mE8nEOKYDinJj9O4k7rQHMzEzzMsthVsIQyDhDEpDmoNdf+GWPgV0upMGxg79BAsY5HlgI jdGaySvg==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdnEI-009lYf-Qe; Fri, 22 Oct 2021 05:36:34 +0000 Date: Thu, 21 Oct 2021 22:36:34 -0700 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: [dm-devel] [PATCH 0/6] dax poison recovery with RWF_RECOVERY_DATA flag Message-ID: References: <20211021001059.438843-1-jane.chu@oracle.com> 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 Fri, Oct 22, 2021 at 01:37:28AM +0000, Jane Chu wrote: > On 10/21/2021 4:31 AM, Christoph Hellwig wrote: > > Looking over the series I have serious doubts that overloading the > > slow path clear poison operation over the fast path read/write > > path is such a great idea. > > > > Understood, sounds like a concern on principle. But it seems to me > that the task of recovery overlaps with the normal write operation > on the write part. Without overloading some write operation for > 'recovery', I guess we'll need to come up with a new userland > command coupled with a new dax API ->clear_poison and propagate the > new API support to each dm targets that support dax which, again, > is an idea that sounds too bulky if I recall Dan's earlier rejection > correctly. When I wrote the above I mostly thought about the in-kernel API, that is use a separate method. But reading your mail and thinking about this a bit more I'm actually less and less sure that overloading pwritev2 and preadv2 with this at the syscall level makes sense either. read/write are our I/O fast path. We really should not overload the core of the VFS with error recovery for a broken hardware interface.