]> git.proxmox.com Git - qemu.git/commitdiff
blkdebug: remove sync i/o events
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 6 Jun 2012 06:10:39 +0000 (08:10 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 9 Jul 2012 13:53:02 +0000 (15:53 +0200)
These are unused, except (by mistake more or less) in QED.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.h
block/blkdebug.c
block/qed.c

diff --git a/block.h b/block.h
index d135652902a48fc77686cb9970ee7e7e0549c468..42e30d6a7c4766fa8e02435c369f4a74eb31a525 100644 (file)
--- a/block.h
+++ b/block.h
@@ -395,9 +395,7 @@ typedef enum {
     BLKDBG_L2_ALLOC_COW_READ,
     BLKDBG_L2_ALLOC_WRITE,
 
-    BLKDBG_READ,
     BLKDBG_READ_AIO,
-    BLKDBG_READ_BACKING,
     BLKDBG_READ_BACKING_AIO,
     BLKDBG_READ_COMPRESSED,
 
index e56e37da510be2e5507e552181fe15570a3516c4..1eff9404babf77e8169245a5338cdb3d076c6dda 100644 (file)
@@ -147,9 +147,7 @@ static const char *event_names[BLKDBG_EVENT_MAX] = {
     [BLKDBG_L2_ALLOC_COW_READ]              = "l2_alloc.cow_read",
     [BLKDBG_L2_ALLOC_WRITE]                 = "l2_alloc.write",
 
-    [BLKDBG_READ]                           = "read",
     [BLKDBG_READ_AIO]                       = "read_aio",
-    [BLKDBG_READ_BACKING]                   = "read_backing",
     [BLKDBG_READ_BACKING_AIO]               = "read_backing_aio",
     [BLKDBG_READ_COMPRESSED]                = "read_compressed",
 
index ab5972466cc4d7caaf6d801c2cbd185733607039..dd2832a93b19bd19b4778593954514ac94a99b43 100644 (file)
@@ -748,7 +748,7 @@ static void qed_read_backing_file(BDRVQEDState *s, uint64_t pos,
     /* If the read straddles the end of the backing file, shorten it */
     size = MIN((uint64_t)backing_length - pos, qiov->size);
 
-    BLKDBG_EVENT(s->bs->file, BLKDBG_READ_BACKING);
+    BLKDBG_EVENT(s->bs->file, BLKDBG_READ_BACKING_AIO);
     bdrv_aio_readv(s->bs->backing_hd, pos / BDRV_SECTOR_SIZE,
                    qiov, size / BDRV_SECTOR_SIZE, cb, opaque);
 }