lkml.org 
[lkml]   [2020]   [Mar]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] fs: btrfs: block-group.c: Fix suspicious RCU usage warning
On Fri, Mar 06, 2020 at 12:22:43PM +0530, madhuparnabhowmik10@gmail.com wrote:
> From: Madhuparna Bhowmik <madhuparnabhowmik10@gmail.com>
>
> 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 <linux@roeck-us.net>
> Signed-off-by: Madhuparna Bhowmik <madhuparnabhowmik10@gmail.com>

I've updated the changelog based on comments from the mail thread and
applied the patch. Thanks.

\
 
 \ /
  Last update: 2020-03-06 20:39    [W:0.102 / U:3.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site