]> git.proxmox.com Git - mirror_qemu.git/commit
hw/nvme: reimplement zone reset to allow cancellation
authorKlaus Jensen <k.jensen@samsung.com>
Thu, 17 Jun 2021 19:06:55 +0000 (21:06 +0200)
committerKlaus Jensen <k.jensen@samsung.com>
Tue, 29 Jun 2021 05:16:25 +0000 (07:16 +0200)
commit63d96e4ffd71a4ac2769448a567d46ed71e5bdd6
tree1db8fb6d3980b290e461c7db76ea6bc5e677a606
parent796d20681d9bef4f863565f1a2f2dbe28e2322c7
hw/nvme: reimplement zone reset to allow cancellation

Prior to this patch, the aios associated with zone reset are submitted
anonymously (no reference saved to the aiocb from the blk_aio call).

Fix this by resetting the zones one after another, saving a reference to
the aiocb for each reset.

Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
hw/nvme/ctrl.c
hw/nvme/trace-events