summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorBreno Leitao <leitao@debian.org>2024-11-04 15:24:40 +0300
committerKeith Busch <kbusch@kernel.org>2024-11-05 00:25:41 +0300
commit6d1c69945ce63a9fba22a4abf646cf960d878782 (patch)
treeb7f5f421d77b70ed58d9674244c79a8124268c52 /tools/perf/scripts/python/sched-migration.py
parentd0c6cc6c6a6164a853e86206309b5a5bc5e3e72b (diff)
downloadlinux-6d1c69945ce63a9fba22a4abf646cf960d878782.tar.xz
nvme/host: Fix RCU list traversal to use SRCU primitive
The code currently uses list_for_each_entry_rcu() while holding an SRCU lock, triggering false positive warnings with CONFIG_PROVE_RCU=y enabled: drivers/nvme/host/core.c:3770 RCU-list traversed in non-reader section!! While the list is properly protected by SRCU lock, the code uses the wrong list traversal primitive. Replace list_for_each_entry_rcu() with list_for_each_entry_srcu() to correctly indicate SRCU-based protection and eliminate the false warning. Fixes: be647e2c76b2 ("nvme: use srcu for iterating namespace list") Signed-off-by: Breno Leitao <leitao@debian.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions