[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 0/3] better I/O accounting
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH 0/3] better I/O accounting |
Date: |
Fri, 12 Aug 2011 06:14:50 +0100 |
This change requires that callers manage the accounting cookie. I
think this belongs in block.c to make the life of callers easier.
Today block.c doesn't track requests and pretty much lets the
BlockDriver control the BlockDriverAIOCB. But the request metadata
(timestamp, operation type, number of bytes) could all be part of the
BlockDriverAIOCB. block.c also needs to interpose a cb function so
that it can account when the request completes. Doing this all once
seems like the right way to go.
Stefan