]> git.proxmox.com Git - mirror_qemu.git/commit
hw/nvme: reimplement the copy command to allow aio cancellation
authorKlaus Jensen <k.jensen@samsung.com>
Thu, 17 Jun 2021 19:06:54 +0000 (21:06 +0200)
committerKlaus Jensen <k.jensen@samsung.com>
Tue, 29 Jun 2021 05:16:25 +0000 (07:16 +0200)
commit796d20681d9bef4f863565f1a2f2dbe28e2322c7
tree9efd91615ef93385710941badfab04984ecb6364
parentf1c97407c5728e284b4e2b331e08c0d88ba568da
hw/nvme: reimplement the copy command to allow aio cancellation

Before this patch the code would issue several aios simultaneously
without saving a reference to the aiocb. Without the aiocb reference the
individual copies cannot be canceled.

Fix this by issuing copies of the ranges one after another.

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