qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [RFC 4/5] block: Add AIO followers


From: Max Reitz
Subject: Re: [Qemu-devel] [RFC 4/5] block: Add AIO followers
Date: Thu, 05 Jun 2014 19:31:46 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

On 04.06.2014 14:41, Stefan Hajnoczi wrote:
On Sat, May 31, 2014 at 08:43:11PM +0200, Max Reitz wrote:
If a long-running operation on a BDS wants to always remain in the same
AIO context, it somehow needs to keep track of the BDS changing its
context. This adds a function for registering callbacks on a BDS which
are called whenever the BDS is attached or detached from an AIO context.

Signed-off-by: Max Reitz <address@hidden>
---
  block.c                   | 55 +++++++++++++++++++++++++++++++++++++++++++++++
  include/block/block_int.h | 40 ++++++++++++++++++++++++++++++++++
  2 files changed, 95 insertions(+)
Great, we definitely need this mechanism.  Block jobs can also use it
later.

Usually QEMU calls this a "notifier" rather than a "follower".  For
example, see include/qemu/notifier.h and bdrv_add_close_notifier().

Ah, I  see, thank you.

Max

Stefan




reply via email to

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