diff options
author | Misono Tomohiro | 2018-08-24 04:35:28 +0200 |
---|---|---|
committer | David Sterba | 2018-08-24 14:09:43 +0200 |
commit | b6fdfbff078975c53383fc146a2a54985eab6b6d (patch) | |
tree | 325b31756fd29ed4f2a38f3e74ee5c07829edb98 /usr | |
parent | btrfs: use after free in btrfs_quota_enable (diff) | |
download | kernel-qcow2-linux-b6fdfbff078975c53383fc146a2a54985eab6b6d.tar.gz kernel-qcow2-linux-b6fdfbff078975c53383fc146a2a54985eab6b6d.tar.xz kernel-qcow2-linux-b6fdfbff078975c53383fc146a2a54985eab6b6d.zip |
btrfs: Fix suspicious RCU usage warning in btrfs_debug_in_rcu
Commit 672d599041c8 ("btrfs: Use wrapper macro for rcu string to remove
duplicate code") replaces some open coded RCU string handling with macro.
It turns out that btrfs_debug_in_rcu() is used for the first time and
the macro lacks lock/unlock of RCU string for non-debug case (i.e. when
the message is not printed), leading to suspicious RCU usage warning
when CONFIG_PROVE_RCU is on.
Fix this by adding a wrapper to call lock/unlock for the non-debug case
too.
Fixes: 672d599041c8 ("btrfs: Use wrapper macro for rcu string to remove duplicate code")
Reported-by: David Howells <dhowells@redhat.com>
Tested-by: David Howells <dhowells@redhat.com>
Signed-off-by: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions