[PATCH v2 1/1] nvmet: add safety check for subsys lock
Christoph Hellwig
hch at lst.de
Mon Sep 22 10:36:29 PDT 2025
On Sun, Sep 21, 2025 at 03:44:05PM +0300, Max Gurtovoy wrote:
> 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.
Only if you enabled lockdep :)
But this still looks useful, so:
Reviewed-by: Christoph Hellwig <hch at lst.de>
More information about the Linux-nvme
mailing list