xen_disk: when using AIO flush after the operation is completed
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 8 lines · On Wed, 2012-04-11 at 14:55 +0100, [email protected] wrote:
commit
4db776322827f0930d53b9e162dc1c6600d918d0Author: Stefano Stabellini <[email protected]> Date: Fri Mar 23 11:37:25 2012 +0000
xen_disk: when using AIO flush after the operation is completedIf
ioreq->postsynccallbdrv_flushwhen the AIO operation is actually completed.
It'd be helpful if the commit message was amended to reference the original upstream commit when backporting, like we do in the xen-X.Y-testing trees and like is done in the Linux stable trees etc.
Ian.
Quoted 37 lines
Signed-off-by Stefano Stabellini <[email protected]>--- hw/xen_disk.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)hw/xen_disk.c +3
-4@@ -398,6 +398,9 @@ static void qemu_aio_complete(void *opaque, int ret)if (ioreq->aio_inflight >0 ) {return ; } +if (ioreq->postsync) { +bdrv_flush (ioreq->blkdev->bs); + } ioreq->status = ioreq->aio_errors ?BLKIF_RSP_ERROR :BLKIF_RSP_OKAY ;ioreq_unmap (ioreq);@@ -444,9 +447,6 @@ static int ioreq_runio_qemu_aio(struct ioreq *ioreq) goto err; } -if (ioreq->postsync) { -bdrv_flush (blkdev->bs);/* FIXME: aio_flush() ??? */ - }qemu_aio_complete (ioreq,0 );return 0 ; --generated by git-patchbot for
/home/xen/git/staging/qemu-upstream-unstable.git_______________________________________________
Xen-staging mailing list
[email protected]
http://lists.xensource.com/xen-staging
Quoted 5 lines · Ian Campbell
Quoted 4 lines · On Wed, 2012-04-11 at 14:55 +0100, [email protected] wrote:
commit
4db776322827f0930d53b9e162dc1c6600d918d0Author: Stefano Stabellini <[email protected]> Date: Fri Mar 23 11:37:25 2012 +0000
Quoted 8 lines
Quoted 4 lines
xen_disk: when using AIO flush after the operation is completedIf
ioreq->postsynccallbdrv_flushwhen the AIO operation is actually completed.It'd be helpful if the commit message was amended to reference the original upstream commit when backporting, like we do in the xen-X.Y-testing trees and like is done in the Linux stable trees etc.
I'll do.