[PATCH v6 2/4] block: add the block queue support

2011-09-01 Thread Zhi Yong Wu
Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- Makefile.objs |2 +- block/blk-queue.c | 226 + block/blk-queue.h | 63 +++ 3 files changed, 290 insertions(+), 1 deletions(-) create mode 100644 block/blk-queue.c

Re: [PATCH v6 2/4] block: add the block queue support

2011-09-01 Thread Stefan Hajnoczi
On Thu, Sep 1, 2011 at 12:44 PM, Zhi Yong Wu wu...@linux.vnet.ibm.com wrote: +struct BlockIORequest { +    QTAILQ_ENTRY(BlockIORequest) entry; +    BlockDriverState *bs; +    BlockRequestHandler *handler; +    int64_t sector_num; +    QEMUIOVector *qiov; +    int nb_sectors; +