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

Christoph Hellwig hch at lst.de
Wed Jul 8 02:17:42 PDT 2026


On Mon, Jul 06, 2026 at 12:54:02PM +0000, John Garry wrote:
> 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.

Looks good:

Reviewed-by: Christoph Hellwig <hch at lst.de>




More information about the Linux-nvme mailing list