Return-Path: Received: from mail-pa0-f46.google.com ([209.85.220.46]:39559 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750980Ab3CaKHk (ORCPT ); Sun, 31 Mar 2013 06:07:40 -0400 Received: by mail-pa0-f46.google.com with SMTP id rl6so901882pac.5 for ; Sun, 31 Mar 2013 03:07:40 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: [BUG] btrfs quota From: Wang Shilong In-Reply-To: <515800BB.50102@gmx.net> Date: Sun, 31 Mar 2013 18:07:35 +0800 Cc: "list.btrfs@jan-o-sch.net Schmidt" , "linux-btrfs@vger.kernel.org" Message-Id: <71FF9EDF-9722-4204-86DF-28FA7A8D1C2C@gmail.com> References: <1DF9A68C-FBA2-460F-921F-CBF94A06CD6B@gmail.com> <515800BB.50102@gmx.net> To: Arne Jansen Sender: linux-btrfs-owner@vger.kernel.org List-ID: Hello Arne, > Hello Wang, > > On 03/31/13 03:44, Wang Shilong wrote: >> Hello Arne, Jan, >> >> When i run stresstest with quota enabled, i hit a panic where >> btrfs_find_all_roots() is called. Would you please double check it. >> > > On what kernel version do you hit this (git commit id preferred)? > Can you send us the message from dmesg? > Maybe it is because my patch [Btrfs: kill some BUG_ONs() in the find_parent_nodes()] would you please review the patch V3 for me? Thanks, Wang > Thanks, > arne > >> stresstest -n 10000 -t 4. >> >> Maybe there is still race condition when walking backref trees, Jan >> would you please check the backref.c .. >> btrfs_find_all_roots() is called in btrfs_qgroup_account_ref () to find >> all roots that reference a extent. I think this is called because >> >> we introduce referenced/exclusive concepts. The point is that i think >> this concept's disadvantages outweigh the advantages: >> <1> >> walking backref tree is really time-consuming. >> <2> referenced/exclusive makes it really complex when snapshot happens. >> <3> quota has a high coupling with other module. >> I'd prefer to just keep referenced value, it is not be elegant, but >> it helps more. >> >> Thanks, >> Wang >> >> >> >> >> >