aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorBreno Leitao <[email protected]>2024-11-04 04:24:40 -0800
committerKeith Busch <[email protected]>2024-11-04 13:25:41 -0800
commit6d1c69945ce63a9fba22a4abf646cf960d878782 (patch)
treeb7f5f421d77b70ed58d9674244c79a8124268c52 /tools/perf/scripts/python/exported-sql-viewer.py
parentd0c6cc6c6a6164a853e86206309b5a5bc5e3e72b (diff)
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 <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Keith Busch <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions