public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Chris Mason <chris.mason@oracle.com>
To: Yan Zheng <zheng.yan@oracle.com>
Cc: devzero@web.de, linux-btrfs@vger.kernel.org
Subject: Re: btrfs filesystem freeze
Date: Mon, 05 Jan 2009 10:44:38 -0500	[thread overview]
Message-ID: <1231170278.4290.85.camel@think.oraclecorp.com> (raw)
In-Reply-To: <494EE585.5090209@oracle.com>

On Mon, 2008-12-22 at 08:55 +0800, Yan Zheng wrote:
> devzero@web.de wrote:
> > thank you.
> > 
> > i tried your patch and did another test run.
> > 
> > first, it looked better as i could do much more snapshots than before, but then it froze again.
> > 
> > i don`t really have a clue if your patch enhanced anything, as my test setup isn`t exactly  reproducable for now and i did not check for exact "testing lab conditions".
> > 
> > after /btrfs froze again, i tried to unmount by forcibly unloading btrfs module. 
> > 
> > after reloading the module and trying to mount again, it failed with the following  kernel message:
> > 
> I hope the new patch can solve the problem.
> 
> Yan Zheng 
> 
> ---
> diff -urp 1/fs/btrfs/inode.c 2/fs/btrfs/inode.c
> --- 1/fs/btrfs/inode.c	2008-12-18 08:09:16.062111805 +0800
> +++ 2/fs/btrfs/inode.c	2008-12-22 08:47:06.000000000 +0800
> @@ -2891,7 +2891,7 @@ void btrfs_delete_inode(struct inode *in
>  	btrfs_wait_ordered_range(inode, 0, (u64)-1);
>  
>  	btrfs_i_size_write(inode, 0);
> -	trans = btrfs_start_transaction(root, 1);
> +	trans = btrfs_join_transaction(root, 1);

Which call to iput is causing problems?  We're going to run into
starvation problems if file deletes use join.

-chris



  reply	other threads:[~2009-01-05 15:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-21 14:09 btrfs filesystem freeze devzero
2008-12-22  0:55 ` Yan Zheng
2009-01-05 15:44   ` Chris Mason [this message]
2009-01-05 21:14     ` Yan Zheng
2009-01-05 21:24       ` Chris Mason
  -- strict thread matches above, loose matches on Subject: below --
2008-12-23  0:26 devzero
2008-12-20 23:26 devzero
2008-12-21 11:13 ` Yan Zheng

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=1231170278.4290.85.camel@think.oraclecorp.com \
    --to=chris.mason@oracle.com \
    --cc=devzero@web.de \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=zheng.yan@oracle.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