Re: [PATCH 1/4] nvme/loop: reset queue count to 1 in nvme_loop_destroy_io_queues()
From: Chaitanya Kulkarni <hidden>
Date: 2021-06-01 17:39:38
From: Chaitanya Kulkarni <hidden>
Date: 2021-06-01 17:39:38
On 5/26/21 10:10, Hannes Reinecke wrote:
The queue count is increased in nvme_loop_init_io_queues(), so we need to reset it to 1 at the end of nvme_loop_destroy_io_queues(). Otherwise the function is not re-entrant safe, and crash will happen during concurrent reset and remove calls. Signed-off-by: Hannes Reinecke <hare@suse.de>
Looks good. Reviewed-by: Chaitanya Kulkarni <redacted> _______________________________________________ Linux-nvme mailing list Linux-nvme@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-nvme