From: Jeff Moyer <jmoyer@redhat.com>
To: Vivek Goyal <vgoyal@redhat.com>
Cc: Jens Axboe <axboe@kernel.dk>, Christoph Hellwig <hch@lst.de>,
Mike Snitzer <snitzer@redhat.com>,
dm-devel@redhat.com, Andi Kleen <andi@firstfloor.org>,
linux-kernel@vger.kernel.org, Tejun Heo <tj@kernel.org>
Subject: Re: [PATCH] fs/block_dev.c: Remove WARN_ON() when inode writeback fails
Date: Thu, 15 Oct 2015 12:23:06 -0400 [thread overview]
Message-ID: <x498u74gkyd.fsf@segfault.boston.devel.redhat.com> (raw)
In-Reply-To: <20150810193725.GC19173@redhat.com> (Vivek Goyal's message of "Mon, 10 Aug 2015 15:37:25 -0400")
Vivek Goyal <vgoyal@redhat.com> writes:
> Hi Jens,
>
> Do you have concerns with this patch? If not, can you please include it.
The concept is fine, but:
>> -static void bdev_write_inode(struct inode *inode)
>> +static void bdev_write_inode(struct block_device *bdev)
>> {
>> + struct inode *inode = bdev->bd_inode;
>> + int ret;
>> +
>> spin_lock(&inode->i_lock);
>> while (inode->i_state & I_DIRTY) {
>> spin_unlock(&inode->i_lock);
>> - WARN_ON_ONCE(write_inode_now(inode, true));
>> + ret = write_inode_now(inode, true);
>> + if (ret) {
>> + char name[BDEVNAME_SIZE] = "";
that initializer isn't necessary.
Cheers,
Jeff
prev parent reply other threads:[~2015-10-15 16:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-22 18:41 Vivek Goyal
2015-06-22 18:42 ` Tejun Heo
2015-08-10 19:37 ` Vivek Goyal
2015-10-15 16:23 ` Jeff Moyer [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=x498u74gkyd.fsf@segfault.boston.devel.redhat.com \
--to=jmoyer@redhat.com \
--cc=andi@firstfloor.org \
--cc=axboe@kernel.dk \
--cc=dm-devel@redhat.com \
--cc=hch@lst.de \
--cc=linux-kernel@vger.kernel.org \
--cc=snitzer@redhat.com \
--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
all inboxes | Powered by JetHome®