From: Josef Bacik <jbacik@redhat.com>
To: Yan Zheng <yanzheng@21cn.com>
Cc: Josef Bacik <jbacik@redhat.com>, linux-btrfs@vger.kernel.org
Subject: Re: [PATCH] btrfs: make sure all pending extent operations are complete
Date: Wed, 28 Jan 2009 07:05:54 -0500 [thread overview]
Message-ID: <20090128120550.GH15050@unused.rdu.redhat.com> (raw)
In-Reply-To: <3d0408630901272008i2db64dc8s479a97d915e0dd48@mail.gmail.com>
On Wed, Jan 28, 2009 at 12:08:29PM +0800, Yan Zheng wrote:
> 2009/1/28 Josef Bacik <jbacik@redhat.com>:
> > Hello,
> >
> > Theres a slight problem with finish_current_insert, if we set all to 1 and then
> > go through and don't actually skip any of the extents on the pending list, we
> > could exit right after we've added new extents. This is a problem because by
> > inserting the new extents we could have gotten new COW's to happen and such, so
> > we may have some pending updates to do or even more inserts to do after that.
> > So this patch will only exit if we have never skipped any of the extents in the
> > pending list, and we have no extents to insert, this will make sure that all of
> > the pending work is truly done before we return. I've been running with this
> > patch for a few days with all of my other testing and have not seen issues.
> > Thanks,
>
> Hi
>
> I think this patch doesn't handle the case we only find some pending updates
> ,but neither find any pending insertion nor skip any extent on the pending list.
> In that case, num_inserts == 0, restart == 0. finish_current_insert
> exits immediately
> after update_backrefs return. This problem is that update_backrefs may add
> new extents to the pending list.
>
Hmm crap it can can't it. Alright I will fix that, thanks,
Josef
next prev parent reply other threads:[~2009-01-28 12:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-27 20:52 [PATCH] btrfs: make sure all pending extent operations are complete Josef Bacik
2009-01-28 4:08 ` Yan Zheng
2009-01-28 12:05 ` Josef Bacik [this message]
2009-01-28 21:29 ` Josef Bacik
-- strict thread matches above, loose matches on Subject: below --
2009-02-11 20:18 Josef Bacik
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=20090128120550.GH15050@unused.rdu.redhat.com \
--to=jbacik@redhat.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=yanzheng@21cn.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