Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3023269imm; Tue, 4 Sep 2018 14:04:16 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZoUKHPWj80NBxnrT4wbNrMN7pVKPt38FvH+vki90S66F3WT9sm25e61VuETruM35bfXr7A X-Received: by 2002:a63:d946:: with SMTP id e6-v6mr32993688pgj.24.1536095056784; Tue, 04 Sep 2018 14:04:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536095056; cv=none; d=google.com; s=arc-20160816; b=Y3+A3o5Gr6CWJaGnHPKcMF5aujMla/VU1U9MYvjB7QRHzNAxpgVxey/cgt56nG8J9B Oj88EsY935rEVtNn87tgF8ltygynoPfoAPxj70nUZRbZ8O3axSg7ZgnkcfF5uwBzyzRJ p+ajgF0a7g0lXKMlRdYOhBRKMWkOZTlMvOw4Qkw3Cf1PX056ZggoJnQ1vpi0sVmecEWB KLH3mAUYMuCxqXFVBSNnXKzuiJPxY+e3kZf99HHKnk7ZlyTCV8czP9H0rkMTx8jAsaUK S6BAIpt7e8HHzY6Y/ou5rO6hZi6SCrGFtolKNPBznXgohtaMhmWepiztNIbLVqoek1cD Rk8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=SqTaK0f+gPcLglrLxtx08/OQOZukSmXCToV/jY2maik=; b=nSaaUKCtU8n4FDWcIXVmLzuq7o+WW7CTYCPmxmaW2eifGIGCJlyF+aONVkyOop6y6t VXznNY43EQ1xjfEk0xYlFV7U/b21vH7QSdQoSBNBTChHkiTJWJRsi3rXm83IOW7j6gnV GXxoHl4KDDTNJMAK269dCKq3WYJxm49MVIDLC91xcI8DCQpTFwxDTZko29CayE1xBLQj NO2RC21nVpbjNhjOvE7eR/7tiWiQ750H36kaxD2lThEtWb7722ltMdFRR31ma+8gaHc7 EGND16liUaumAR1Lh6f1qFjpdeV2TPq9Nia8uv2TTeVweimJi5cAXjWiSHaIJ0ShBFq0 ztag== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=NDtkyT27; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s25-v6si21312340pgd.539.2018.09.04.14.03.59; Tue, 04 Sep 2018 14:04:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=NDtkyT27; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727402AbeIEB3f (ORCPT + 99 others); Tue, 4 Sep 2018 21:29:35 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:49494 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726426AbeIEB3f (ORCPT ); Tue, 4 Sep 2018 21:29:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=SqTaK0f+gPcLglrLxtx08/OQOZukSmXCToV/jY2maik=; b=NDtkyT27IBvTjW0MQLQByTyIe 2v8+nVFjVGXqKB97SfemFixBc2lJa2d/0VlS9cZDBpt/waONewN+Z/1V+61uDgA3wWIxxcybcafU1 VN8N0sTcLuTb+EKs11ceOeMZmNMAQ4GQfBcoy9zgNDXM2uZ/fWXIRu4nMkgtF8+s2zT+8S62/Q7qD U/GHIuyuxSc/n8/qV0ZIqkhNeeDqKh6RDaJ187aWKbmTPtNYJeOeiMeg3jCReb20ZKQ7r9bVcPg5x rZaFk7kFmmoq3fep1XZNZlMz1Nx+oiRe1LNzbDhduRGP9kRsSRisAzGz9PjHqwFDJF2M6He1/gswR ezDobFBYQ==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fxIT7-0004vr-H7; Tue, 04 Sep 2018 21:02:37 +0000 Date: Tue, 4 Sep 2018 14:02:37 -0700 From: Matthew Wilcox To: Vito Caputo Cc: Jeff Layton , "J. Bruce Fields" , Rogier Wolff , =?utf-8?B?54Sm5pmT5Yas?= , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: POSIX violation by writeback error Message-ID: <20180904210237.GA12303@bombadil.infradead.org> References: <20180904075347.GH11854@BitWizard.nl> <82ffc434137c2ca47a8edefbe7007f5cbecd1cca.camel@redhat.com> <20180904161203.GD17478@fieldses.org> <20180904162348.GN17123@BitWizard.nl> <20180904185411.GA22166@fieldses.org> <20180904203534.yumaest6v5p6izln@shells.gnugeneration.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180904203534.yumaest6v5p6izln@shells.gnugeneration.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 04, 2018 at 01:35:34PM -0700, Vito Caputo wrote: > Implement a new class of swap space for backing dirty pages which fail > to write back. Pages in this space survive reboots, essentially backing > the implicit commitment POSIX establishes in the face of asynchronous > writeback errors. Rather than evicting these pages as clean, they are > swapped out to the persistent swap. You not only need to track which index within a file this swapped page belongs to but also which file. And that starts to get tricky. It may or may not have a name; it may or may not have a persistent inode number; it may or may not have a persistent fhandle. If it's on network storage, it may have been modified by another machine. If it's on removable storage, it may have been modified by another machine.