]> xenbits.xensource.com Git - qemu-xen.git/commit
hw/nvme: reimplement flush to allow cancellation
authorKlaus Jensen <k.jensen@samsung.com>
Thu, 17 Jun 2021 19:06:47 +0000 (21:06 +0200)
committerKlaus Jensen <k.jensen@samsung.com>
Tue, 29 Jun 2021 05:16:25 +0000 (07:16 +0200)
commit38f4ac65ac88ebf4f1869c1361f40b1817b4a39c
tree9fdad6e6b8b8f6b3f8924eaacd23c416f7690bb0
parent3276dde4f262588f3645f2adbc84d07cb6981d3e
hw/nvme: reimplement flush to allow cancellation

Prior to this patch, a broadcast flush would result in submitting
multiple "fire and forget" aios (no reference saved to the aiocbs
returned from the blk_aio_flush calls).

Fix this by issuing the flushes 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/nvme.h
hw/nvme/trace-events