Searched hist:d7d1474f (Results 1 – 2 of 2) sorted by relevance
/openbmc/qemu/hw/nvme/ |
H A D | trace-events | d7d1474f Thu Jun 17 14:06:49 CDT 2021 Klaus Jensen <k.jensen@samsung.com> hw/nvme: reimplement dsm to allow cancellation Prior to this patch, a loop was used to issue multiple "fire and forget" aios for each range in the command. Without a reference to the aiocb returned from the blk_aio_pdiscard calls, the aios cannot be canceled. Fix this by processing the ranges one after another. As a bonus, this fixes how metadata is cleared (i.e. we only zero it out if the data was succesfully discarded). Signed-off-by: Klaus Jensen <k.jensen@samsung.com> Reviewed-by: Keith Busch <kbusch@kernel.org>
|
H A D | ctrl.c | d7d1474f Thu Jun 17 14:06:49 CDT 2021 Klaus Jensen <k.jensen@samsung.com> hw/nvme: reimplement dsm to allow cancellation Prior to this patch, a loop was used to issue multiple "fire and forget" aios for each range in the command. Without a reference to the aiocb returned from the blk_aio_pdiscard calls, the aios cannot be canceled. Fix this by processing the ranges one after another. As a bonus, this fixes how metadata is cleared (i.e. we only zero it out if the data was succesfully discarded). Signed-off-by: Klaus Jensen <k.jensen@samsung.com> Reviewed-by: Keith Busch <kbusch@kernel.org>
|