All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Jeff Layton <jlayton@kernel.org>
Cc: stable@vger.kernel.org, willy@infradead.org
Subject: Re: [v4.14.y PATCH] errseq: Always report a writeback error once
Date: Sun, 6 May 2018 18:15:59 -0700	[thread overview]
Message-ID: <20180507011559.GA13198@kroah.com> (raw)
In-Reply-To: <20180506155957.25163-1-jlayton@kernel.org>

On Sun, May 06, 2018 at 11:59:57AM -0400, Jeff Layton wrote:
> From: Matthew Wilcox <willy@infradead.org>
> 
> The errseq_t infrastructure assumes that errors which occurred before
> the file descriptor was opened are of no interest to the application.
> This turns out to be a regression for some applications, notably Postgres.
> 
> Before errseq_t, a writeback error would be reported exactly once (as
> long as the inode remained in memory), so Postgres could open a file,
> call fsync() and find out whether there had been a writeback error on
> that file from another process.
> 
> This patch changes the errseq infrastructure to report errors to all
> file descriptors which are opened after the error occurred, but before
> it was reported to any file descriptor.  This restores the user-visible
> behaviour.
> 
> [ jlayton: fix up conflicts in comments ]
> 
> Cc: stable@vger.kernel.org
> Fixes: 5660e13d2fd6 ("fs: new infrastructure for writeback error handling and reporting")
> Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
> Reviewed-by: Jeff Layton <jlayton@kernel.org>
> Signed-off-by: Jeff Layton <jlayton@redhat.com>
> (cherry picked from commit b4678df184b314a2bd47d2329feca2c2534aa12b)
> ---
>  lib/errseq.c | 25 +++++++++++--------------
>  1 file changed, 11 insertions(+), 14 deletions(-)
> 
> This is a backport to the v4.14 stable series. The only merge conflict
> was due to an earlier patch by Willy to flesh out the comments. There
> were no code changes necessary.

Thanks for the backport, now queued up.

greg k-h

      parent reply	other threads:[~2018-05-07 13:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-06 15:59 [v4.14.y PATCH] errseq: Always report a writeback error once Jeff Layton
2018-05-06 19:02 ` Matthew Wilcox
2018-05-07  1:15 ` Greg KH [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=20180507011559.GA13198@kroah.com \
    --to=greg@kroah.com \
    --cc=jlayton@kernel.org \
    --cc=stable@vger.kernel.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.