From: Christoph Hellwig <hch@lst.de>
To: "Darrick J. Wong" <darrick.wong@oracle.com>
Cc: Christoph Hellwig <hch@lst.de>, linux-xfs@vger.kernel.org
Subject: Re: [PATCH] xfs: open code end_buffer_async_write in xfs_finish_page_writeback
Date: Fri, 11 Aug 2017 19:09:21 +0200 [thread overview]
Message-ID: <20170811170921.GA1127@lst.de> (raw)
In-Reply-To: <20170811162037.GB24087@magnolia>
On Fri, Aug 11, 2017 at 09:20:38AM -0700, Darrick J. Wong wrote:
> If we're going to open-code end_buffer_async_write, could we have a
> comment here explaining that we've done so, and why?
Sure.
> ASSERT(bh->b_end_io == end_buffer_async_write), just in case we ever get
> passed a buffer head with an endio function that isn't what we're
> open-coding?
Ok.
> > + if (unlikely(error && !quiet)) {
> > + xfs_err_ratelimited(XFS_I(inode)->i_mount,
> > + "read error on sector %llu", start);
>
> Read error? Isn't this writeback?
Ooops, it is.
> I also wonder about the wisdom of the text deviating from "lost async
> page write", since scripts/admins have been trained to look for that as
> evidence of writeback problems for years.
We could keep the text, but I think it's rather confusing and doesn't
fit the other XFS warnings. And I don't think admins should rely on
the sorts of warnings. E.g. for btrfs they would not get these
warnings either.
> (That said, at least now it's a lot less spammy.)
Yes - but we could still print the warning once per bio instead of
once per bh if the message remains the same.
prev parent reply other threads:[~2017-08-11 17:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-11 9:59 RFC: buffered I/O completion change Christoph Hellwig
2017-08-11 9:59 ` [PATCH] xfs: open code end_buffer_async_write in xfs_finish_page_writeback Christoph Hellwig
2017-08-11 16:20 ` Darrick J. Wong
2017-08-11 17:09 ` Christoph Hellwig [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=20170811170921.GA1127@lst.de \
--to=hch@lst.de \
--cc=darrick.wong@oracle.com \
--cc=linux-xfs@vger.kernel.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