From: Christoph Hellwig Date: Wed, 19 May 2021 07:09:56 +0000 (+0200) Subject: nvme: add a sparse annotation to nvme_ns_head_ctrl_ioctl X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=85b790a7ae0518dd745bbb97d532b83840d2db04;p=linux.git nvme: add a sparse annotation to nvme_ns_head_ctrl_ioctl Add the __releases annotation to tell sparse that nvme_ns_head_ctrl_ioctl is expected to unlock head->srcu. Signed-off-by: Christoph Hellwig Reviewed-by: Keith Busch Reviewed-by: Sagi Grimberg --- diff --git a/drivers/nvme/host/ioctl.c b/drivers/nvme/host/ioctl.c index 2c6969ffe85cb..2e7780ea0354f 100644 --- a/drivers/nvme/host/ioctl.c +++ b/drivers/nvme/host/ioctl.c @@ -372,6 +372,7 @@ long nvme_ns_chr_ioctl(struct file *file, unsigned int cmd, unsigned long arg) #ifdef CONFIG_NVME_MULTIPATH static int nvme_ns_head_ctrl_ioctl(struct nvme_ns *ns, unsigned int cmd, void __user *argp, struct nvme_ns_head *head, int srcu_idx) + __releases(&head->srcu) { struct nvme_ctrl *ctrl = ns->ctrl; int ret;