[PATCH v2 1/1] nvmet: add safety check for subsys lock

Keith Busch kbusch at kernel.org
Mon Sep 22 13:24:57 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.

Thanks, applied to nvme-6.18.



More information about the Linux-nvme mailing list