From: Mike Snitzer <snitzer@redhat.com>
To: Joel Becker <jlbec@evilplan.org>
Cc: Christoph Hellwig <hch@infradead.org>,
axboe@kernel.dk, linux-kernel@vger.kernel.org,
linux-fsdevel@vger.kernel.org, tj@kernel.org, jmoyer@redhat.com,
vgoyal@redhat.com, dm-devel@redhat.com
Subject: Re: [RFC PATCH] block: all callers should check blkdev_issue_flush's return
Date: Mon, 2 Jul 2012 10:35:16 -0400 [thread overview]
Message-ID: <20120702143515.GD785@redhat.com> (raw)
In-Reply-To: <20120701072836.GA13247@dhcp-172-17-9-228.mtv.corp.google.com>
On Sun, Jul 01 2012 at 3:28am -0400,
Joel Becker <jlbec@evilplan.org> wrote:
> On Tue, Jun 26, 2012 at 11:57:50AM -0400, Mike Snitzer wrote:
> > On Tue, Jun 26 2012 at 11:51am -0400,
> > Christoph Hellwig <hch@infradead.org> wrote:
> >
> > > On Tue, Jun 26, 2012 at 11:27:25AM -0400, Mike Snitzer wrote:
> > > > It is concerning that a FLUSH may fail but the blkdev_issue_flush
> > > > callers assume it will always succeed.
> > > >
> > > > Each blkdev_issue_flush caller should come to terms with the reality
> > > > that a FLUSH may fail -- the file_operations' .fsync methods in
> > > > particular. nilfs2 is the only filesystem that checks
> > > > blkdev_issue_flush's return.
> > >
> > > Good spot, but it would be way better if you actually provided patches
> > > to fix this instead of just adding more compiler warnings.
> >
> > Alasdair pointed this issue out in response to me asserting that
> > blkdev_issue_flush does return non-void. But anyway, others knowing
> > about this issue is half the battle. ;)
> >
> > Most .fsync methods are straight-forward to convert but I'd prefer each
> > filesystem maintainer actively audit all blkdev_issue_flush calls.
>
> So send it out with maintainers on cc: and get Acks. That way we have a
> coherent patch series cleaning up the in-tree filesystems, rather than a
> bunch of warnings for every compile until the maintainers notice.
Hi Joel,
I shouldn't have sent an RFC patch at all; a normal mail would've
sufficed.
My intent wasn't to have that patch go upstream. I explained as much to
Jens when I saw him last week: I just wanted to get the issue on
filesystem developers' radar (hence the RFC).
But just because someone reports something doesn't implicitly mean they
own fixing it -- I'm unfortunately quite busy with other work.
Given you have more filesystem experience and may be more inclined to
pick over the nuance of each blkdev_issue_flush caller (and how
short-circuiting on blkdev_issue_flush failure should be handled):
please feel free to get a coherent patchset going. ;)
prev parent reply other threads:[~2012-07-02 14:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-26 15:27 [RFC PATCH] block: all callers should check blkdev_issue_flush's return Mike Snitzer
2012-06-26 15:33 ` Jeff Moyer
2012-06-26 15:51 ` Christoph Hellwig
2012-06-26 15:57 ` Mike Snitzer
2012-07-01 7:28 ` Joel Becker
2012-07-02 14:35 ` Mike Snitzer [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=20120702143515.GD785@redhat.com \
--to=snitzer@redhat.com \
--cc=axboe@kernel.dk \
--cc=dm-devel@redhat.com \
--cc=hch@infradead.org \
--cc=jlbec@evilplan.org \
--cc=jmoyer@redhat.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tj@kernel.org \
--cc=vgoyal@redhat.com \
/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).