diff options
| author | Nilay Shroff <nilay@linux.ibm.com> | 2026-07-13 17:24:10 +0530 |
|---|---|---|
| committer | Keith Busch <kbusch@kernel.org> | 2026-07-28 10:37:26 -0700 |
| commit | 4258bf237e7f26cbbd44c9dada11b87cda18041c (patch) | |
| tree | c0685e6a130d1d993b02a351c8923c9941637c6c /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 696d2aeb77513eb474eb3557efc32be763289e4f (diff) | |
nvme: add context annotations for nvme_dev::shutdown_lock
nvme_setup_io_queues_trylock() conditionally acquires dev->shutdown_lock
using mutex_trylock(). The function returns 0 when the lock is
successfully acquired and a negative error code otherwise.
Annotate the function with __cond_acquires(0, &dev->shutdown_lock) so
that Clang's lock context analysis can track the lock state based on
the return value and verify correct lock usage at call sites.
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/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
