Re: [RFC PATCH] Btrfs: fix full backref problem when inserting shared block reference

2013-01-31 Thread Alex Lyakas
Thanks for your comments, Miao. On Thu, Jan 31, 2013 at 4:42 AM, Miao Xie mi...@cn.fujitsu.com wrote: On Wed, 30 Jan 2013 20:23:22 +0200, Alex Lyakas wrote: Hi Miao, I was following this thread in the past, but I did not understand it fully, maybe you can explain? # mkfs.btrfs partition

Re: [RFC PATCH] Btrfs: fix full backref problem when inserting shared block reference

2013-01-30 Thread Alex Lyakas
Hi Miao, I was following this thread in the past, but I did not understand it fully, maybe you can explain? # mkfs.btrfs partition # mount partition mnt # cd mnt # for ((i=0;i2400;i++)); do touch long_name_to_make_tree_more_deep$i; done # for ((i=0; i4; i++)) do mkdir $i

Re: [RFC PATCH] Btrfs: fix full backref problem when inserting shared block reference

2012-08-21 Thread Miao Xie
On Thu, 9 Aug 2012 09:21:29 +0200, David Sterba wrote: On Thu, Aug 09, 2012 at 08:48:02AM +0200, David Sterba wrote: and down, no problems so far, and the wikipedia test-subvol stresstest that caused trouble to one of your patches is also ok. I'll do some more testing on other machines and

Re: [RFC PATCH] Btrfs: fix full backref problem when inserting shared block reference

2012-08-10 Thread Miao Xie
On Thu, 9 Aug 2012 09:21:29 +0200, David Sterba wrote: On Thu, Aug 09, 2012 at 08:48:02AM +0200, David Sterba wrote: and down, no problems so far, and the wikipedia test-subvol stresstest that caused trouble to one of your patches is also ok. I'll do some more testing on other machines and

Re: [RFC PATCH] Btrfs: fix full backref problem when inserting shared block reference

2012-08-10 Thread Miao Xie
On thu, 9 Aug 2012 14:04:05 -0400, Chris Mason wrote: On Wed, Aug 08, 2012 at 09:10:17PM -0600, Miao Xie wrote: If we create several snapshots at the same time, the following BUG_ON() will be triggered. kernel BUG at fs/btrfs/extent-tree.c:6047! Steps to reproduce: #

Re: [RFC PATCH] Btrfs: fix full backref problem when inserting shared block reference

2012-08-10 Thread Chris Mason
On Fri, Aug 10, 2012 at 04:38:47AM -0600, Miao Xie wrote: Onthu, 9 Aug 2012 14:04:05 -0400, Chris Mason wrote: On Wed, Aug 08, 2012 at 09:10:17PM -0600, Miao Xie wrote: If we create several snapshots at the same time, the following BUG_ON() will be triggered. kernel BUG at

Re: [RFC PATCH] Btrfs: fix full backref problem when inserting shared block reference

2012-08-09 Thread David Sterba
On Thu, Aug 09, 2012 at 11:10:17AM +0800, Miao Xie wrote: I chose the 1st way to fix it. The least I can say now is that it fixed the crash! The approach is minimalistic and I think we can take it for now. I didn't review it, only tested with reproducer you described plus modified the numbers up

Re: [RFC PATCH] Btrfs: fix full backref problem when inserting shared block reference

2012-08-09 Thread David Sterba
On Thu, Aug 09, 2012 at 08:48:02AM +0200, David Sterba wrote: and down, no problems so far, and the wikipedia test-subvol stresstest that caused trouble to one of your patches is also ok. I'll do some more testing on other machines and will report problems eventually. So it won't be so easy :)

Re: [RFC PATCH] Btrfs: fix full backref problem when inserting shared block reference

2012-08-09 Thread Miao Xie
On Thu, 9 Aug 2012 09:21:29 +0200, David Sterba wrote: On Thu, Aug 09, 2012 at 08:48:02AM +0200, David Sterba wrote: and down, no problems so far, and the wikipedia test-subvol stresstest that caused trouble to one of your patches is also ok. I'll do some more testing on other machines and

Re: [RFC PATCH] Btrfs: fix full backref problem when inserting shared block reference

2012-08-09 Thread Josef Bacik
On Wed, Aug 08, 2012 at 09:10:17PM -0600, Miao Xie wrote: If we create several snapshots at the same time, the following BUG_ON() will be triggered. kernel BUG at fs/btrfs/extent-tree.c:6047! Steps to reproduce: # mkfs.btrfs partition # mount partition mnt # cd mnt # for

Re: [RFC PATCH] Btrfs: fix full backref problem when inserting shared block reference

2012-08-09 Thread Chris Mason
On Thu, Aug 09, 2012 at 06:23:19AM -0600, Josef Bacik wrote: On Wed, Aug 08, 2012 at 09:10:17PM -0600, Miao Xie wrote: If we create several snapshots at the same time, the following BUG_ON() will be triggered. kernel BUG at fs/btrfs/extent-tree.c:6047! Steps to reproduce:

Re: [RFC PATCH] Btrfs: fix full backref problem when inserting shared block reference

2012-08-09 Thread Josef Bacik
On Thu, Aug 09, 2012 at 07:11:09AM -0600, Chris L. Mason wrote: On Thu, Aug 09, 2012 at 06:23:19AM -0600, Josef Bacik wrote: On Wed, Aug 08, 2012 at 09:10:17PM -0600, Miao Xie wrote: If we create several snapshots at the same time, the following BUG_ON() will be triggered.

Re: [RFC PATCH] Btrfs: fix full backref problem when inserting shared block reference

2012-08-09 Thread Chris Mason
On Thu, Aug 09, 2012 at 07:12:47AM -0600, Josef Bacik wrote: On Thu, Aug 09, 2012 at 07:11:09AM -0600, Chris L. Mason wrote: On Thu, Aug 09, 2012 at 06:23:19AM -0600, Josef Bacik wrote: On Wed, Aug 08, 2012 at 09:10:17PM -0600, Miao Xie wrote: If we create several snapshots at the same

Re: [RFC PATCH] Btrfs: fix full backref problem when inserting shared block reference

2012-08-09 Thread Chris Mason
On Wed, Aug 08, 2012 at 09:10:17PM -0600, Miao Xie wrote: If we create several snapshots at the same time, the following BUG_ON() will be triggered. kernel BUG at fs/btrfs/extent-tree.c:6047! Steps to reproduce: # mkfs.btrfs partition # mount partition mnt # cd mnt # for

[RFC PATCH] Btrfs: fix full backref problem when inserting shared block reference

2012-08-08 Thread Miao Xie
If we create several snapshots at the same time, the following BUG_ON() will be triggered. kernel BUG at fs/btrfs/extent-tree.c:6047! Steps to reproduce: # mkfs.btrfs partition # mount partition mnt # cd mnt # for ((i=0;i2400;i++)); do touch long_name_to_make_tree_more_deep$i; done