All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-nvme:nvme-7.3 45/48] drivers/nvme/host/multipath.c:249:38: warning: reading variable 'current_path' requires holding __ctx_lock_RCU 'RCU'
@ 2026-07-29  8:36 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-07-29  8:36 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "only suspicious fbc files changed"
:::::: 

BCC: lkp@intel.com
CC: llvm@lists.linux.dev
CC: oe-kbuild-all@lists.linux.dev
CC: linux-nvme@lists.infradead.org
TO: Nilay Shroff <nilay@linux.ibm.com>
CC: Keith Busch <kbusch@kernel.org>
CC: Christoph Hellwig <hch@lst.de>

tree:   git://git.infradead.org/nvme.git nvme-7.3
head:   b53d495c7f0db46b6748b5ade48371a10dd5d3bc
commit: fccada336f6d29344e3853d44b96684807dd7d7d [45/48] nvme: enable context analysis support for nvme host driver
:::::: branch date: 11 hours ago
:::::: commit date: 15 hours ago
config: loongarch-defconfig (https://download.01.org/0day-ci/archive/20260729/202607291634.E5clnaLh-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 890b11e09e45e9d8b29f2f94f22052be3934e757)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260729/202607291634.E5clnaLh-lkp@intel.com/reproduce)

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/r/202607291634.E5clnaLh-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/nvme/host/multipath.c:249:38: warning: reading variable 'current_path' requires holding __ctx_lock_RCU 'RCU' [-Wthread-safety-analysis]
     249 |                 if (ns == rcu_access_pointer(head->current_path[node])) {
         |                                                    ^
   1 warning generated.


vim +249 drivers/nvme/host/multipath.c

0d0b660f214dc49 Christoph Hellwig 2018-05-14  241  
0157ec8dad3c8fc Sagi Grimberg     2019-07-25  242  bool nvme_mpath_clear_current_path(struct nvme_ns *ns)
32acab3181c7053 Christoph Hellwig 2017-11-02  243  {
f333444708f82c4 Christoph Hellwig 2018-09-11  244  	struct nvme_ns_head *head = ns->head;
0157ec8dad3c8fc Sagi Grimberg     2019-07-25  245  	bool changed = false;
f333444708f82c4 Christoph Hellwig 2018-09-11  246  	int node;
f333444708f82c4 Christoph Hellwig 2018-09-11  247  
f333444708f82c4 Christoph Hellwig 2018-09-11  248  	for_each_node(node) {
0157ec8dad3c8fc Sagi Grimberg     2019-07-25 @249  		if (ns == rcu_access_pointer(head->current_path[node])) {
f333444708f82c4 Christoph Hellwig 2018-09-11  250  			rcu_assign_pointer(head->current_path[node], NULL);
0157ec8dad3c8fc Sagi Grimberg     2019-07-25  251  			changed = true;
0157ec8dad3c8fc Sagi Grimberg     2019-07-25  252  		}
f333444708f82c4 Christoph Hellwig 2018-09-11  253  	}
0157ec8dad3c8fc Sagi Grimberg     2019-07-25  254  	return changed;
0157ec8dad3c8fc Sagi Grimberg     2019-07-25  255  }
0157ec8dad3c8fc Sagi Grimberg     2019-07-25  256  

:::::: The code at line 249 was first introduced by commit
:::::: 0157ec8dad3c8fc9bc9790f76e0831ffdaf2e7f0 nvme: fix controller removal race with scan work

:::::: TO: Sagi Grimberg <sagi@grimberg.me>
:::::: CC: Sagi Grimberg <sagi@grimberg.me>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-29  8:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-29  8:36 [linux-nvme:nvme-7.3 45/48] drivers/nvme/host/multipath.c:249:38: warning: reading variable 'current_path' requires holding __ctx_lock_RCU 'RCU' kernel test robot

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.