nvme: add a sparse annotation to nvme_ns_head_ctrl_ioctl
authorChristoph Hellwig <hch@lst.de>
Wed, 19 May 2021 07:09:56 +0000 (09:09 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 3 Jun 2021 07:29:25 +0000 (10:29 +0300)
commit85b790a7ae0518dd745bbb97d532b83840d2db04
tree04c68779c31b0b4546d293d6f7f3c5283174aa67
parent3e7d1a55165bdce2aaf1139ee8889e68eb29c263
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 <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/host/ioctl.c