CC: kbuild-all(a)lists.01.org
CC: cluster-devel(a)redhat.com
TO: Bob Peterson <rpeterso(a)redhat.com>
tree:
https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git
for-next.bob6b
head: 8aef3eb9d3f560027f23e9690d0eca9427ba520d
commit: 338462527fad3a08cda656c2cc2f44d9ae319e42 [5/12] gfs2: Wipe jdata and ail1 in
gfs2_journal_wipe, formerly gfs2_meta_wipe
:::::: branch date: 10 hours ago
:::::: commit date: 10 hours ago
config: xtensa-randconfig-s032-20200731 (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.2-115-g5fc204f2-dirty
git checkout 338462527fad3a08cda656c2cc2f44d9ae319e42
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=xtensa
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/gfs2/meta_io.c:362:27: sparse: sparse: context imbalance in
'gfs2_remove_from_journal' - different lock contexts for basic block
#
https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git/commi...
git remote add gfs2
https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git
git remote update gfs2
git checkout 338462527fad3a08cda656c2cc2f44d9ae319e42
vim +/gfs2_remove_from_journal +362 fs/gfs2/meta_io.c
b3b94faa5fe5968 David Teigland 2006-01-16 329
338462527fad3a0 Bob Peterson 2020-07-22 330 void gfs2_remove_from_journal(struct
buffer_head *bh, int meta, int lock_ail)
b3b94faa5fe5968 David Teigland 2006-01-16 331 {
009d851837ab26c Steven Whitehouse 2009-12-08 332 struct address_space *mapping =
bh->b_page->mapping;
009d851837ab26c Steven Whitehouse 2009-12-08 333 struct gfs2_sbd *sdp =
gfs2_mapping2sbd(mapping);
16615be18cadf53 Steven Whitehouse 2007-09-17 334 struct gfs2_bufdata *bd =
bh->b_private;
68cd4ce2caf22a8 Bob Peterson 2016-05-02 335 struct gfs2_trans *tr =
current->journal_info;
502be2a32f09f38 Bob Peterson 2013-12-13 336 int was_pinned = 0;
009d851837ab26c Steven Whitehouse 2009-12-08 337
b3b94faa5fe5968 David Teigland 2006-01-16 338 if (test_clear_buffer_pinned(bh)) {
627c10b7e471b5d Steven Whitehouse 2011-04-14 339 trace_gfs2_pin(bd, 0);
5e687eac1bd31ba Benjamin Marzinski 2010-05-04 340
atomic_dec(&sdp->sd_log_pinned);
c0752aa7e4d48cc Bob Peterson 2012-05-01 341 list_del_init(&bd->bd_list);
68cd4ce2caf22a8 Bob Peterson 2016-05-02 342 if (meta == REMOVE_META)
5c676f6d359b040 Steven Whitehouse 2006-02-27 343 tr->tr_num_buf_rm++;
022ef4feed0c648 Steven Whitehouse 2014-02-21 344 else
16615be18cadf53 Steven Whitehouse 2007-09-17 345 tr->tr_num_databuf_rm++;
9862ca056e65463 Bob Peterson 2017-01-25 346 set_bit(TR_TOUCHED,
&tr->tr_flags);
502be2a32f09f38 Bob Peterson 2013-12-13 347 was_pinned = 1;
b3b94faa5fe5968 David Teigland 2006-01-16 348 brelse(bh);
b3b94faa5fe5968 David Teigland 2006-01-16 349 }
b3b94faa5fe5968 David Teigland 2006-01-16 350 if (bd) {
338462527fad3a0 Bob Peterson 2020-07-22 351 if (lock_ail)
c618e87a5fd02aa Steven Whitehouse 2011-03-14 352
spin_lock(&sdp->sd_ail_lock);
16ca9412d801818 Benjamin Marzinski 2013-04-05 353 if (bd->bd_tr) {
1ad38c437fa33f8 Steven Whitehouse 2007-09-03 354 gfs2_trans_add_revoke(sdp, bd);
502be2a32f09f38 Bob Peterson 2013-12-13 355 } else if (was_pinned) {
502be2a32f09f38 Bob Peterson 2013-12-13 356 bh->b_private = NULL;
502be2a32f09f38 Bob Peterson 2013-12-13 357
kmem_cache_free(gfs2_bufdata_cachep, bd);
1ad38c437fa33f8 Steven Whitehouse 2007-09-03 358 }
338462527fad3a0 Bob Peterson 2020-07-22 359 if (lock_ail)
c618e87a5fd02aa Steven Whitehouse 2011-03-14 360
spin_unlock(&sdp->sd_ail_lock);
b3b94faa5fe5968 David Teigland 2006-01-16 361 }
b3b94faa5fe5968 David Teigland 2006-01-16 @362 clear_buffer_dirty(bh);
b3b94faa5fe5968 David Teigland 2006-01-16 363 clear_buffer_uptodate(bh);
16615be18cadf53 Steven Whitehouse 2007-09-17 364 }
16615be18cadf53 Steven Whitehouse 2007-09-17 365
:::::: The code at line 362 was first introduced by commit
:::::: b3b94faa5fe5968827ba0640ee9fba4b3e7f736e [GFS2] The core of GFS2
:::::: TO: David Teigland <teigland(a)redhat.com>
:::::: CC: Steven Whitehouse <swhiteho(a)redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org