nvme: don't reference NS after unlocking in nvme_ns_head_ctrl_ioctl()

In nvme_ns_head_ctrl_ioctl(), once we drop the SRCU read lock we should
not reference the NS to lookup the controller, so use the available
controller pointer directly.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
This commit is contained in:
John Garry 2026-07-06 12:54:02 +00:00 • committed by Keith Busch
commit 77c57daf98