public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* block/blk-zoned.c:579:5-24: WARNING: atomic_dec_and_test variation before object free at line 583.
@ 2024-11-04 22:52 kernel test robot
  2024-11-05 15:34 ` Christoph Hellwig
  0 siblings, 1 reply; 6+ messages in thread
From: kernel test robot @ 2024-11-04 22:52 UTC (permalink / raw)
  To: Damien Le Moal
  Cc: oe-kbuild-all, linux-kernel, Jens Axboe, Christoph Hellwig,
	Hannes Reinecke, Martin K. Petersen, Bart Van Assche

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   557329bcecc2f55e134db8974953b32b69db9d15
commit: dd291d77cc90eb6a86e9860ba8e6e38eebd57d12 block: Introduce zone write plugging
date:   7 months ago
config: alpha-randconfig-r064-20241105 (https://download.01.org/0day-ci/archive/20241105/202411050650.ilIZa8S7-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 13.3.0

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411050650.ilIZa8S7-lkp@intel.com/

cocci warnings: (new ones prefixed by >>)
>> block/blk-zoned.c:579:5-24: WARNING: atomic_dec_and_test variation before object free at line 583.

vim +579 block/blk-zoned.c

   576	
   577	static inline void disk_put_zone_wplug(struct blk_zone_wplug *zwplug)
   578	{
 > 579		if (atomic_dec_and_test(&zwplug->ref)) {
   580			WARN_ON_ONCE(!bio_list_empty(&zwplug->bio_list));
   581			WARN_ON_ONCE(!list_empty(&zwplug->link));
   582	
 > 583			call_rcu(&zwplug->rcu_head, disk_free_zone_wplug_rcu);
   584		}
   585	}
   586	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-11-06 22:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-04 22:52 block/blk-zoned.c:579:5-24: WARNING: atomic_dec_and_test variation before object free at line 583 kernel test robot
2024-11-05 15:34 ` Christoph Hellwig
2024-11-05 15:36   ` Jens Axboe
2024-11-05 15:37     ` Christoph Hellwig
2024-11-05 15:56       ` Jens Axboe
2024-11-06 22:53         ` Damien Le Moal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox