All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alberto Garcia <berto@igalia.com>
To: Jeff Cody <jcody@redhat.com>, Kevin Wolf <kwolf@redhat.com>
Cc: stefanha@redhat.com, famz@redhat.com, qemu-devel@nongnu.org,
	qemu-block@nongnu.org, armbru@redhat.com
Subject: Re: [Qemu-devel] [Qemu-block] RFC: Operation Blockers in QEMU Block Nodes
Date: Mon, 25 Jan 2016 15:10:47 +0100	[thread overview]
Message-ID: <w51zivtlpg8.fsf@maestria.local.igalia.com> (raw)
In-Reply-To: <20151219054200.GD22361@localhost.localdomain>

Hi,

I'm late to the party but I wanted to say that I generally like the idea
of expressing the notion of op blockers in terms of the specific things
that they allow and require in each one of the affected nodes.

I don't know if all current operations can be expressed easily with
these semantics, though.

I also noticed this:

On Sat 19 Dec 2015 06:42:00 AM CET, Jeff Cody <jcody@redhat.com> wrote:

 [block-streaming from B to C]
>      A <- B <- C <--- virtio-blk
>
>
>     1. Data is read from (B) and written into (C)
>
>          - This is not a "Write Visible Data" operation, because a read
>            from (C) will return the same results as it did prior to the
>            operation.
>
>     2. The backing file in (C) is modified to reflect (A) as the new
>        backing file
>
>          - This is what would require the "Write Metadata".  Not
>            because it doesn't require "Write Visible Data", but
>            because we change the backing file of (C).
>
>     3. Node (B) is dropped from the internal BDS graph, and (C)
>        becomes the direct overlay of (A).
>
>           - This would require the "Graph Reconfiguration"
>
>
> Here is how I would see the full set of Require / Allow flags for each
> node involved in your hypothetical block job:
>
>                      Nodes involved: (A), (B), (C).
>
>                 ----------------------------------------------
>                 |   Node A     |   Node B     |   Node C     |
>                 | Req  : Allow | Req  : Allow | Req  : Allow |
> =============================================================|
> Modify Visible  |   0  :  1    |   0  :  0    |   0  :  1    |
> Modify Metadata |   0  :  1    |   0  :  1    |   1  :  0    |
> Graph Reconfig  |   1  :  0    |   0  :  1    |   1  :  0    |
> Read Visible    |   0  :  1    |   1  :  1    |   0  :  1    |
> Read Metadata   |   1  :  1    |   1  :  1    |   1  :  1    |

Why does this require "graph reconfig" in (A) but not in (B)? The result
of the operation is that (B) is dropped and (C) now points to (A), but
(A) itself doesn't change.

Berto

      reply	other threads:[~2016-01-25 14:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-16  6:25 [Qemu-devel] RFC: Operation Blockers in QEMU Block Nodes Jeff Cody
2015-12-16 16:31 ` Eric Blake
2015-12-16 18:45   ` Jeff Cody
2015-12-18  5:52 ` Stefan Hajnoczi
2015-12-18 14:19 ` Kevin Wolf
2015-12-19  5:42   ` Jeff Cody
2016-01-25 14:10     ` Alberto Garcia [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=w51zivtlpg8.fsf@maestria.local.igalia.com \
    --to=berto@igalia.com \
    --cc=armbru@redhat.com \
    --cc=famz@redhat.com \
    --cc=jcody@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.