summaryrefslogtreecommitdiff
path: root/include/math-emu
diff options
context:
space:
mode:
authorMadhuparna Bhowmik <madhuparnabhowmik10@gmail.com>2020-03-06 12:22:43 +0530
committerDavid Sterba <dsterba@suse.com>2020-03-23 17:01:53 +0100
commit29566c9c773456467933ee22bbca1c2b72a3506c (patch)
treee89c7362de88a359eeea927549e1ba32083bd944 /include/math-emu
parent65cd6d9e30fa85922cb073625665807130d01e70 (diff)
downloadlinux-rpi-29566c9c773456467933ee22bbca1c2b72a3506c.tar.gz
linux-rpi-29566c9c773456467933ee22bbca1c2b72a3506c.tar.bz2
linux-rpi-29566c9c773456467933ee22bbca1c2b72a3506c.zip
btrfs: add RCU locks around block group initialization
The space_info list is normally RCU protected and should be traversed with rcu_read_lock held. There's a warning [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!! pointing out that the locking is missing in btrfs_read_block_groups. However this is not necessary as the list traversal happens at mount time when there's no other thread potentially accessing the list. To fix the warning and for consistency let's add the RCU lock/unlock, the code won't be affected much as it's doing some lightweight operations. Reported-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Madhuparna Bhowmik <madhuparnabhowmik10@gmail.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include/math-emu')
0 files changed, 0 insertions, 0 deletions