[PATCH 07/15] nvme: add Clang context annotations for nvme_subsystem::lock

Bart Van Assche bvanassche at acm.org
Wed Jun 10 09:28:50 PDT 2026


On 6/10/26 7:27 AM, Nilay Shroff wrote:
> +	mutex_lock(&ctrl->subsys->lock);
>   	list_add_tail(&head->entry, &ctrl->subsys->nsheads);
> +	mutex_unlock(&ctrl->subsys->lock);

Has it been considered to use scoped_guard()?

Thanks,

Bart.



More information about the Linux-nvme mailing list