Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp7164727ybf; Fri, 6 Mar 2020 11:38:07 -0800 (PST) X-Google-Smtp-Source: ADFU+vt6/oHuWuNE+KU7OZlvE3cMND6om1SLrHbjDDD0cSOZ5IOfTV1ZHS68nnRyXH3LDN8QCXFk X-Received: by 2002:a9d:6641:: with SMTP id q1mr4093876otm.17.1583523487771; Fri, 06 Mar 2020 11:38:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583523487; cv=none; d=google.com; s=arc-20160816; b=brmVxyE2zdeTMqPVjp9i18aZyWaxTnitseaPUZhGlcghOFyvYW5W/VzlS9ReTkGnp2 OUgjLRkwupu/uavEOVm3P1XgPGKvyqTO0bTDbV/FPKxgctDyjnQopfhEjK9J5XfkWyCQ FYum4VMqW/tz0J9gApoJpNJFzRn/o0DCJSyPCdXStpF9KgUphCnPcKtUBBiyh5DPcRhh mTA+eF6/pt+7NMmNuUf3k8iz2E0ishHajTM18wcy8/lP8AA3ozPyeFCFv9Q8fOcj5ygX 6LDQTrJk7ec23mgIF4sK5bi8jOsTOeBQsgkumxhc7w8xIp/+fAvO2t6eBdyV15X2Qg1+ eQHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :reply-to:message-id:subject:cc:to:from:date; bh=tsC8sYyGR5hNhFikoIabGYNlG6mCo8j0N3Yt7D1PH78=; b=jN2A8J6wr1taDSw3lagTNRhoB8Fv7roSNAnszKcR+DSV+wFF7nliP0IDbwcp0DKQuU CqitcO9yhTMqqT0+4ppgSHm21tzPOzZLHhzLXHJ40z3nZGbjIEMplYTRDN7q8ZWBOTb6 BF3CP8vpx7kvyFt01+FmPg05SaQIQC+f57ovEmXecyrOBka0DXvpm8GASTdwOEPcOZCJ b8/5j2f8FjT9Urc0GmHJNiLILRqfKL4TrT3bZd4Q19R17fvkR36G/JFjb2KF+KB5KQtw rat9PVkjEyDm2OWb5hXcCk9tpIK4ugl46nMwWOecSApe3nYHH/Vj/CgGpsYjev7i0yeN Le8A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g10si1963239otn.244.2020.03.06.11.37.55; Fri, 06 Mar 2020 11:38:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726251AbgCFThk (ORCPT + 99 others); Fri, 6 Mar 2020 14:37:40 -0500 Received: from mx2.suse.de ([195.135.220.15]:56004 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726171AbgCFThj (ORCPT ); Fri, 6 Mar 2020 14:37:39 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id E0820AEEF; Fri, 6 Mar 2020 19:37:37 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 860CDDA728; Fri, 6 Mar 2020 20:37:13 +0100 (CET) Date: Fri, 6 Mar 2020 20:37:13 +0100 From: David Sterba To: madhuparnabhowmik10@gmail.com Cc: clm@fb.com, josef@toxicpanda.com, dsterba@suse.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, joel@joelfernandes.org, linux-kernel-mentees@lists.linuxfoundation.org, paulmck@kernel.org, frextrite@gmail.com, linux@roeck-us.net Subject: Re: [PATCH] fs: btrfs: block-group.c: Fix suspicious RCU usage warning Message-ID: <20200306193713.GI2902@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, madhuparnabhowmik10@gmail.com, clm@fb.com, josef@toxicpanda.com, dsterba@suse.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, joel@joelfernandes.org, linux-kernel-mentees@lists.linuxfoundation.org, paulmck@kernel.org, frextrite@gmail.com, linux@roeck-us.net References: <20200306065243.11699-1-madhuparnabhowmik10@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200306065243.11699-1-madhuparnabhowmik10@gmail.com> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 06, 2020 at 12:22:43PM +0530, madhuparnabhowmik10@gmail.com wrote: > From: Madhuparna Bhowmik > > The space_info list is rcu protected. > Hence, it should be traversed with rcu_read_lock held. > > Warning: > [ 29.104591] ============================= > [ 29.104756] WARNING: suspicious RCU usage > [ 29.105046] 5.6.0-rc4-next-20200305 #1 Not tainted > [ 29.105231] ----------------------------- > [ 29.105401] fs/btrfs/block-group.c:2011 RCU-list traversed in non-reader section!! > > Reported-by: Guenter Roeck > Signed-off-by: Madhuparna Bhowmik I've updated the changelog based on comments from the mail thread and applied the patch. Thanks.