Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1903949imm; Tue, 10 Jul 2018 09:44:35 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfQuBYVmbLq1WeHNA/D8a5Gn1B8bE3fycj9oSHK5WZwVdOTXfy3XXyQr3lrB0x+/OAPPel4 X-Received: by 2002:a65:6243:: with SMTP id q3-v6mr22715853pgv.273.1531241075285; Tue, 10 Jul 2018 09:44:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531241075; cv=none; d=google.com; s=arc-20160816; b=uJqY2vVWzwYrH3ykYMBXfccD2WjdK9mU1gBa3ZOg1eH0xBvEIxeamHAh0lMwg9jjaS kugaNe0QmYgYhgRaVKAb4MDIF0G30RRuCeEgAOQy7N6dBgNkEL5chRuYyFFZRWSjjFHn QUkoA00kK8135BMdILO6lX0EjXBvo9UrFuz3Rec9dAUvfFodYBWJZ5Ai2YzSO+d1ubwl g1Gd+zpTMVySCj6Qc0cq8yveahoXe72iYF+LygeJjLCLU5vIBLOBjRIjtg3U1Qg2mpib qNJFnbLmHBzIJrCrMJB5C41MF6z6TQa16cWSHIGZenWBGJyKgWkvXT44ErPfhPKxcQ/5 6VPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-id:mime-version :subject:cc:to:references:in-reply-to:from:organization :arc-authentication-results; bh=Queb/zju3x8wONH5q8FuAwkKws737nDxaONVWALCkdE=; b=PHB8r3VgE7nwwyRa9O+YIYvT8YPCahce1GmJPsIoZxX2YDLy+bLwV3pEMmnnCfsT7J kv2PSusViHz75Co5/LkGAPv0DLVoD4eGt85eFogmLF9BjsFxokCMfkm0bnYDtZfPoaYr 3vhWQxLQvJonUk0PoK9I5AQ8wSBpWT2hcacHv308QeiQeL8ZUmbKQkpOhP3eR00ZbZxI gn3RJ5Ql7qlRwWHQKvlkOH6dtcpUYgNhX7SO4PWMV6Ez/xd4fvkGE84A19B139x91/fY c7RKaRqyM4lMm6zGd6Jiv0gPsV1N1C/9UwHqhsWrpTnkDyrDcYNwYh3EHUkhyWfwqVVG gezg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f21-v6si18790072plj.180.2018.07.10.09.44.19; Tue, 10 Jul 2018 09:44:35 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933685AbeGJOXf (ORCPT + 99 others); Tue, 10 Jul 2018 10:23:35 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:56816 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933384AbeGJOXe (ORCPT ); Tue, 10 Jul 2018 10:23:34 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A6A7981A4EBF; Tue, 10 Jul 2018 14:23:33 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-149.rdu2.redhat.com [10.10.120.149]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0177A1102E1C; Tue, 10 Jul 2018 14:23:29 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20180710140127.20739-1-jlayton@kernel.org> References: <20180710140127.20739-1-jlayton@kernel.org> To: Jeff Layton Cc: dhowells@redhat.com, viro@ZenIV.linux.org.uk, willy@infradead.org, andres@anarazel.de, cmaiolino@redhat.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v2 0/4] vfs: track per-sb writeback errors and report them via fsinfo() MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2876.1531232609.1@warthog.procyon.org.uk> Date: Tue, 10 Jul 2018 15:23:29 +0100 Message-ID: <2877.1531232609@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Tue, 10 Jul 2018 14:23:33 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Tue, 10 Jul 2018 14:23:33 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dhowells@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jeff Layton wrote: > v2: drop buffer.c patch to record wb errors when underlying blockdev > flush fails. We may eventually want that, but at this point I don't have > a clear way to test it to determine its efficacy. > > At LSF/MM this year, the PostgreSQL developers mentioned that they'd > like to have some mechanism to check whether there have been any > writeback errors on a filesystem, without necessarily flushing any of > the cached data first. > > Given that we have a new fsinfo syscall being introduced, we may as well > use it to report writeback errors on a per superblock basis. This allows > us to provide the info that the PostgreSQL developers wanted, without > needing to change an existing interface. > > This seems to do the right thing when tested by hand, but I don't yet > have an xfstest for it, since the syscall is still quite new. Once that > goes in and we get fsinfo support in xfs_io, it should be rather > trivial to roll a testcase for this. Reviewed-by: David Howells