tree:
https://git.kernel.org/pub/scm/linux/kernel/git/josef/btrfs-next.git
locking-rework
head: ecc26315fec63c1ce9a1420cb6d9b6e0d0c4d7f5
commit: 061e82bf86d54d981acb307eff1fa114e71c3854 [16/18] btrfs: change our extent buffer
lock to a rw_semaphore
config: i386-randconfig-s002-20200810 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-141-g19506bc2-dirty
git checkout 061e82bf86d54d981acb307eff1fa114e71c3854
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
fs/btrfs/locking.c: note: in included file (through fs/btrfs/ctree.h):
> include/trace/events/btrfs.h:2066:1: sparse: sparse: context
imbalance in '__btrfs_tree_lock' - wrong count at exit
fs/btrfs/locking.c:217:6: sparse: sparse: context imbalance in 'btrfs_tree_lock' -
wrong count at exit
vim +/__btrfs_tree_lock +2066 include/trace/events/btrfs.h
34e73cc930a867 Qu Wenruo 2019-04-15 2065
34e73cc930a867 Qu Wenruo 2019-04-15 @2066 DEFINE_EVENT(btrfs_sleep_tree_lock,
btrfs_tree_lock,
34e73cc930a867 Qu Wenruo 2019-04-15 2067 TP_PROTO(const struct extent_buffer *eb, u64
start_ns),
34e73cc930a867 Qu Wenruo 2019-04-15 2068
34e73cc930a867 Qu Wenruo 2019-04-15 2069 TP_ARGS(eb, start_ns)
34e73cc930a867 Qu Wenruo 2019-04-15 2070 );
34e73cc930a867 Qu Wenruo 2019-04-15 2071
:::::: The code at line 2066 was first introduced by commit
:::::: 34e73cc930a8677426c9cbffdd3421e18f32e79f btrfs: trace: Introduce trace events for
sleepable tree lock
:::::: TO: Qu Wenruo <wqu(a)suse.com>
:::::: CC: David Sterba <dsterba(a)suse.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org