Re: [Qemu-devel] [PATCH v8 1/4] block: add the block queue support

2011-10-18 Thread Zhi Yong Wu
On Tue, Oct 18, 2011 at 5:56 PM, Kevin Wolf wrote: > Am 18.10.2011 11:29, schrieb Zhi Yong Wu: +void qemu_del_block_queue(BlockQueue *queue) +{ +    BlockQueueAIOCB *request, *next; + +    QTAILQ_FOREACH_SAFE(request, &queue->requests, entry, next) { >>

Re: [Qemu-devel] [PATCH v8 1/4] block: add the block queue support

2011-10-18 Thread Kevin Wolf
Am 18.10.2011 11:29, schrieb Zhi Yong Wu: >>> +void qemu_del_block_queue(BlockQueue *queue) >>> +{ >>> +BlockQueueAIOCB *request, *next; >>> + >>> +QTAILQ_FOREACH_SAFE(request, &queue->requests, entry, next) { >>> +QTAILQ_REMOVE(&queue->requests, request, ent

Re: [Qemu-devel] [PATCH v8 1/4] block: add the block queue support

2011-10-18 Thread Zhi Yong Wu
On Tue, Oct 18, 2011 at 4:36 PM, Kevin Wolf wrote: > Am 18.10.2011 10:07, schrieb Zhi Yong Wu: >> On Mon, Oct 17, 2011 at 6:17 PM, Kevin Wolf wrote: >> + >> +typedef struct BlockQueueAIOCB BlockQueueAIOCB; >> + >> +struct BlockQueue { >> +    QTAILQ_HEAD(requests, BlockQueueAI

Re: [Qemu-devel] [PATCH v8 1/4] block: add the block queue support

2011-10-18 Thread Kevin Wolf
Am 18.10.2011 10:07, schrieb Zhi Yong Wu: > On Mon, Oct 17, 2011 at 6:17 PM, Kevin Wolf wrote: > + > +typedef struct BlockQueueAIOCB BlockQueueAIOCB; > + > +struct BlockQueue { > +QTAILQ_HEAD(requests, BlockQueueAIOCB) requests; > +bool req_failed; > +bool f

Re: [Qemu-devel] [PATCH v8 1/4] block: add the block queue support

2011-10-18 Thread Zhi Yong Wu
On Mon, Oct 17, 2011 at 6:17 PM, Kevin Wolf wrote: > Am 26.09.2011 10:01, schrieb Zhi Yong Wu: >> On Fri, Sep 23, 2011 at 11:32 PM, Kevin Wolf wrote: >>> Am 08.09.2011 12:11, schrieb Zhi Yong Wu: Signed-off-by: Zhi Yong Wu ---  Makefile.objs     |    2 +-  block/blk-queue.c |

Re: [Qemu-devel] [PATCH v8 1/4] block: add the block queue support

2011-10-18 Thread Zhi Yong Wu
On Mon, Oct 17, 2011 at 6:17 PM, Paolo Bonzini wrote: > On 10/17/2011 12:17 PM, Kevin Wolf wrote: >> >> > > >  + >> > > >  +static int qemu_block_queue_handler(BlockQueueAIOCB *request) >> > > >  +{ >> > > >  +    int ret; >> > > >  +    BlockDriverAIOCB *res; >> > > >  + >> > > >  +    res = requ

Re: [Qemu-devel] [PATCH v8 1/4] block: add the block queue support

2011-10-17 Thread Kevin Wolf
Am 26.09.2011 10:01, schrieb Zhi Yong Wu: > On Fri, Sep 23, 2011 at 11:32 PM, Kevin Wolf wrote: >> Am 08.09.2011 12:11, schrieb Zhi Yong Wu: >>> Signed-off-by: Zhi Yong Wu >>> --- >>> Makefile.objs |2 +- >>> block/blk-queue.c | 201 >>> +

Re: [Qemu-devel] [PATCH v8 1/4] block: add the block queue support

2011-09-26 Thread Zhi Yong Wu
On Fri, Sep 23, 2011 at 11:32 PM, Kevin Wolf wrote: > Am 08.09.2011 12:11, schrieb Zhi Yong Wu: >> Signed-off-by: Zhi Yong Wu >> --- >>  Makefile.objs     |    2 +- >>  block/blk-queue.c |  201 >> + >>  block/blk-queue.h |   59

Re: [Qemu-devel] [PATCH v8 1/4] block: add the block queue support

2011-09-23 Thread Kevin Wolf
Am 08.09.2011 12:11, schrieb Zhi Yong Wu: > Signed-off-by: Zhi Yong Wu > --- > Makefile.objs |2 +- > block/blk-queue.c | 201 > + > block/blk-queue.h | 59 > block_int.h | 27 +++ > 4 files changed, 288

[Qemu-devel] [PATCH v8 1/4] block: add the block queue support

2011-09-08 Thread Zhi Yong Wu
Signed-off-by: Zhi Yong Wu --- Makefile.objs |2 +- block/blk-queue.c | 201 + block/blk-queue.h | 59 block_int.h | 27 +++ 4 files changed, 288 insertions(+), 1 deletions(-) create mode 100644 block/blk

[Qemu-devel] [PATCH v8 1/4] block: add the block queue support

2011-09-07 Thread Zhi Yong Wu
Signed-off-by: Zhi Yong Wu --- Makefile.objs |2 +- block/blk-queue.c | 184 + block/blk-queue.h | 59 + block_int.h | 27 4 files changed, 271 insertions(+), 1 deletions(-) create mode 100644 block/b