diff options
author | Max Gurtovoy <mgurtovoy@nvidia.com> | 2025-09-21 15:44:05 +0300 |
---|---|---|
committer | Keith Busch <kbusch@kernel.org> | 2025-09-23 15:38:28 -0700 |
commit | 20015410fbdff3633418484165c694f6ceeb855b (patch) | |
tree | 77ee82a8c884109afd4dc60b0f333976695814a8 /tools/testing/selftests/net/lib/py/netns.py | |
parent | 80e653fab6676fdcdfe2710cab5fc4312ac47edd (diff) |
nvmet: add safety check for subsys lock
Replace comment about required lock with a lockdep_assert_held()
check in the following functions:
- nvmet_p2pmem_ns_add_p2p()
- nvmet_setup_p2p_ns_map()
- nvmet_release_p2p_ns_map()
This ensures the subsystem lock is held at runtime.
Signed-off-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/netns.py')
0 files changed, 0 insertions, 0 deletions