mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
trace: Trace bdrv_aio_flush()
Add a trace event for bdrv_aio_flush() to complement the existing bdrv_aio_readv() and bdrv_aio_writev() events. Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
This commit is contained in:
parent
0b5538c300
commit
a13aac04e1
2 changed files with 3 additions and 0 deletions
2
block.c
2
block.c
|
@ -2477,6 +2477,8 @@ BlockDriverAIOCB *bdrv_aio_flush(BlockDriverState *bs,
|
|||
{
|
||||
BlockDriver *drv = bs->drv;
|
||||
|
||||
trace_bdrv_aio_flush(bs, opaque);
|
||||
|
||||
if (bs->open_flags & BDRV_O_NO_FLUSH) {
|
||||
return bdrv_aio_noop_em(bs, cb, opaque);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue