[PATCH 1/4] nvme/loop: reset queue count to 1 in nvme_loop_destroy_io_queues()

Chaitanya Kulkarni Chaitanya.Kulkarni at wdc.com
Tue Jun 1 10:39:15 PDT 2021


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 at suse.de>

Looks good.

Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni at wdc.com>





More information about the Linux-nvme mailing list