]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/nvme: reimplement format nvm to allow cancellation
authorKlaus Jensen <k.jensen@samsung.com>
Thu, 17 Jun 2021 19:06:56 +0000 (21:06 +0200)
committerKlaus Jensen <k.jensen@samsung.com>
Tue, 29 Jun 2021 05:16:25 +0000 (07:16 +0200)
commit3bcf26d3d6192e350b165c681aff13f6697f30fb
treebd1e5feed0865d40a958ae4ce31bad29fe9befa3
parent63d96e4ffd71a4ac2769448a567d46ed71e5bdd6
hw/nvme: reimplement format nvm to allow cancellation

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

Fix this by formatting the namespaces one after another, saving a
reference to the aiocb for each.

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