All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: [kdave-btrfs-devel:misc-next 47/71] fs/btrfs/raid56.c:1502:5-24: atomic_dec_and_test variation before object free at line 1503.
Date: Wed, 08 Jun 2022 09:09:21 +0800	[thread overview]
Message-ID: <202206080945.WrIdHzB3-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2250 bytes --]

CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: linux-kernel(a)vger.kernel.org
TO: Christoph Hellwig <hch@lst.de>
CC: David Sterba <dsterba@suse.com>

tree:   https://github.com/kdave/btrfs-devel.git misc-next
head:   e2a46f3f73fd5aac0241242d535905286a947113
commit: 94fa5c9a0e7e708aac2464c31b6fa062dff0871e [47/71] btrfs: defer I/O completion based on the btrfs_raid_bio
:::::: branch date: 9 hours ago
:::::: commit date: 35 hours ago
config: i386-randconfig-c021 (https://download.01.org/0day-ci/archive/20220608/202206080945.WrIdHzB3-lkp(a)intel.com/config)
compiler: gcc-11 (Debian 11.3.0-1) 11.3.0

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>


cocci warnings: (new ones prefixed by >>)
>> fs/btrfs/raid56.c:1502:5-24: atomic_dec_and_test variation before object free at line 1503.

vim +1502 fs/btrfs/raid56.c

53b381b3abeb86 David Woodhouse   2013-01-29  1490  
94fa5c9a0e7e70 Christoph Hellwig 2022-05-26  1491  static void raid56_bio_end_io(struct bio *bio)
53b381b3abeb86 David Woodhouse   2013-01-29  1492  {
53b381b3abeb86 David Woodhouse   2013-01-29  1493  	struct btrfs_raid_bio *rbio = bio->bi_private;
53b381b3abeb86 David Woodhouse   2013-01-29  1494  
4e4cbee93d5613 Christoph Hellwig 2017-06-03  1495  	if (bio->bi_status)
53b381b3abeb86 David Woodhouse   2013-01-29  1496  		fail_bio_stripe(rbio, bio);
53b381b3abeb86 David Woodhouse   2013-01-29  1497  	else
5fdb7afc6f94d5 Qu Wenruo         2022-04-01  1498  		set_bio_pages_uptodate(rbio, bio);
53b381b3abeb86 David Woodhouse   2013-01-29  1499  
53b381b3abeb86 David Woodhouse   2013-01-29  1500  	bio_put(bio);
53b381b3abeb86 David Woodhouse   2013-01-29  1501  
94fa5c9a0e7e70 Christoph Hellwig 2022-05-26 @1502  	if (atomic_dec_and_test(&rbio->stripes_pending))
94fa5c9a0e7e70 Christoph Hellwig 2022-05-26 @1503  		queue_work(rbio->bioc->fs_info->endio_raid56_workers,
94fa5c9a0e7e70 Christoph Hellwig 2022-05-26  1504  			   &rbio->end_io_work);
94fa5c9a0e7e70 Christoph Hellwig 2022-05-26  1505  }
53b381b3abeb86 David Woodhouse   2013-01-29  1506  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-06-08  1:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202206080945.WrIdHzB3-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.