linux-api.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Layton <jlayton@kernel.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-api@vger.kernel.org,
	andres@anarazel.de, willy@infradead.org, dhowells@redhat.com,
	hch@infradead.org, jack@suse.cz, david@fromorbit.com
Subject: Re: [PATCH v6 RESEND 0/2] vfs: have syncfs() return error when there are writeback errors
Date: Wed, 29 Apr 2020 08:23:37 -0400	[thread overview]
Message-ID: <4f485a350db547fa7a9f5ef764a413b93564aef7.camel@kernel.org> (raw)
In-Reply-To: <20200428164819.7b58666b755d2156aa46c56c@linux-foundation.org>

On Tue, 2020-04-28 at 16:48 -0700, Andrew Morton wrote:
> On Tue, 28 Apr 2020 09:51:53 -0400 Jeff Layton <jlayton@kernel.org> wrote:
> 
> > Just a resend since this hasn't been picked up yet. No real changes
> > from the last set (other than adding Jan's Reviewed-bys). Latest
> > cover letter follows:
> 
> I see no cover letter here.
> 
> > --------------------------8<----------------------------
> > 
> > v6:
> > - use READ_ONCE to ensure that compiler doesn't optimize away local var
> > 
> > The only difference from v5 is the change to use READ_ONCE to fetch the
> > bd_super pointer, to ensure that the compiler doesn't refetch it
> > afterward. Many thanks to Jan K. for the explanation!
> > 
> > Jeff Layton (2):
> >   vfs: track per-sb writeback errors and report them to syncfs
> >   buffer: record blockdev write errors in super_block that it backs
> 
> http://lkml.kernel.org/r/20200207170423.377931-1-jlayton@kernel.org
> 
> has suitable-looking words, but is it up to date?
> 

Thanks for picking this up, Andrew.

No, it's not. Since I wrote that, I dropped the ioctl and changed it
over to use a dedicated field in struct file instead of trying to
multiplex it for O_PATH descriptors. How about something like this?

---------------------------8<---------------------------

Currently, syncfs does not return errors when one of the inodes fails to
be written back. It will return errors based on the legacy AS_EIO and
AS_ENOSPC flags when syncing out the block device fails, but that's not
particularly helpful for filesystems that aren't backed by a blockdev.
It's also possible for a stray sync to lose those errors.

The basic idea in this set is to track writeback errors at the
superblock level, so that we can quickly and easily check whether
something bad happened without having to fsync each file individually.
syncfs is then changed to reliably report writeback errors after they
occur, much in the same fashion as fsync does now.

-- 
Jeff Layton <jlayton@kernel.org>


      reply	other threads:[~2020-04-29 12:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-28 13:51 [PATCH v6 RESEND 0/2] vfs: have syncfs() return error when there are writeback errors Jeff Layton
2020-04-28 13:51 ` [PATCH v6 RESEND 1/2] vfs: track per-sb writeback errors and report them to syncfs Jeff Layton
2020-04-28 13:51 ` [PATCH v6 RESEND 2/2] buffer: record blockdev write errors in super_block that it backs Jeff Layton
2020-04-28 23:48 ` [PATCH v6 RESEND 0/2] vfs: have syncfs() return error when there are writeback errors Andrew Morton
2020-04-29 12:23   ` Jeff Layton [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4f485a350db547fa7a9f5ef764a413b93564aef7.camel@kernel.org \
    --to=jlayton@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=andres@anarazel.de \
    --cc=david@fromorbit.com \
    --cc=dhowells@redhat.com \
    --cc=hch@infradead.org \
    --cc=jack@suse.cz \
    --cc=linux-api@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=viro@zeniv.linux.org.uk \
    --cc=willy@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).