diff options
author | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-03-07 07:58:04 +0000 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-03-07 15:34:42 +0000 |
commit | a13aac04e13b246edab6c0c08513504ecb71bbd4 (patch) | |
tree | a4cf73711a70c9ae82dafd5ce835953977f5a257 /block.c | |
parent | 0b5538c300a56c3cfb33022840fe0b4968147e7a (diff) |
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>
Diffstat (limited to 'block.c')
-rw-r--r-- | block.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); } |