qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-block] [PATCH 01/11] block: keep a list of block jobs


From: Max Reitz
Subject: Re: [Qemu-block] [PATCH 01/11] block: keep a list of block jobs
Date: Mon, 18 May 2015 18:39:03 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

On 13.05.2015 15:27, Alberto Garcia wrote:
The current way to obtain the list of existing block jobs is to
iterate over all root nodes and check which ones own a job.

Since we want to be able to support block jobs in other nodes as well,
this patch keeps a list of jobs that is updated every time one is
created or destroyed.

This also updates qmp_query_block_jobs() and bdrv_drain_all() to use
this new list.

Signed-off-by: Alberto Garcia <address@hidden>
Cc: Max Reitz <address@hidden>
Cc: Eric Blake <address@hidden>
---
  block/io.c               | 21 ++++++++-------------
  blockdev.c               | 19 ++++++++-----------
  blockjob.c               | 13 +++++++++++++
  include/block/blockjob.h | 14 ++++++++++++++
  4 files changed, 43 insertions(+), 24 deletions(-)

Reviewed-by: Max Reitz <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]