From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.suse.de ([195.135.220.15]:52788 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755152AbbKSNW2 (ORCPT ); Thu, 19 Nov 2015 08:22:28 -0500 Date: Thu, 19 Nov 2015 14:20:47 +0100 From: David Sterba To: Filipe Manana Cc: "dsterba@suse.cz" , Justin Maggard , "linux-btrfs@vger.kernel.org" , Justin Maggard Subject: Re: [PATCH] btrfs: qgroup: fix quota disable during rescan Message-ID: <20151119132047.GD31035@twin.jikos.cz> Reply-To: dsterba@suse.cz References: <1446835002-11751-1-git-send-email-jmaggard@netgear.com> <20151119130827.GC31035@twin.jikos.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Sender: linux-btrfs-owner@vger.kernel.org List-ID: On Thu, Nov 19, 2015 at 01:16:42PM +0000, Filipe Manana wrote: > On Thu, Nov 19, 2015 at 1:08 PM, David Sterba wrote: > > Hi, > > > > On Fri, Nov 06, 2015 at 10:36:42AM -0800, Justin Maggard wrote: > >> There's a race condition that leads to a NULL pointer dereference if you > >> disable quotas while a quota rescan is running. To fix this, we just need > >> to wait for the quota rescan worker to actually exit before tearing down > >> the quota structures. > > > > I see a reproducible crash in btrfs/115 (the fstest for this patch). > > This is with 4.4-rc1, so the patch is included: > > That's the expected crash, the patch isn't in 4.4-rc1. Aha, thanks. I got confused with the other fix, "btrfs: qgroup: exit the rescan worker during umount".