Return-Path: 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 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> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: 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