diff options
| author | Nilay Shroff <nilay@linux.ibm.com> | 2026-07-13 17:24:06 +0530 |
|---|---|---|
| committer | Keith Busch <kbusch@kernel.org> | 2026-07-28 10:37:12 -0700 |
| commit | 86f9536c2d8f4496f1e45cb0a70ca1b3a7d89106 (patch) | |
| tree | 2b91518fa7d33e87c56de56ff386efd52fd5cee7 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | a6732bd8003ad1ea9283c204b9ea6443d98bbc26 (diff) | |
nvme: add context annotations for nvme_ns_head::srcu
Add Clang lock context annotations for helpers that operate under
head->srcu read-side protection.
The path selection helpers invoked by nvme_find_path() access SRCU-
protected data through srcu_dereference() or list APIs which iterate
through rcu protected list and therefore require the caller to hold
head->srcu. Annotate these helpers and nvme_find_path() with
__must_hold_shared(&head->srcu) so that Clang's lock context analysis
can verify the SRCU locking requirements across the call chain.
Also update nvme_ns_head_ctrl_ioctl() to use __releases_shared()
to match the shared SRCU read-side lock acquired through
srcu_read_lock().
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nilay Shroff <nilay@linux.ibm.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
