]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: open code nvme_put_ns_from_disk in nvme_ns_head_chr_ioctl
authorChristoph Hellwig <hch@lst.de>
Wed, 19 May 2021 07:02:59 +0000 (09:02 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 3 Jun 2021 07:29:25 +0000 (10:29 +0300)
commit2bd3a8f3f263f20c2f926aec91085185f96841df
tree623607f6496b093f19144aa3b02326af421fdf70
parent78e37942c39b470381c019723cbfb8e09fb4f6f5
nvme: open code nvme_put_ns_from_disk in nvme_ns_head_chr_ioctl

nvme_ns_head_chr_ioctl is always used on multipath nodes, so just call
srcu_read_unlock and consolidate the two unlock paths.

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