qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v3 0/3] block/stream: get rid of the base
@ 2019-04-05 16:56 Andrey Shinkevich
  2019-04-05 16:56 ` Andrey Shinkevich
                   ` (3 more replies)
  0 siblings, 4 replies; 28+ messages in thread
From: Andrey Shinkevich @ 2019-04-05 16:56 UTC (permalink / raw)
  To: qemu-devel, qemu-block
  Cc: stefanha, fam, kwolf, mreitz, jsnow, berto, den, vsementsov,
	andrey.shinkevich

This series introduces a bottom intermediate node that eliminates the
dependency on the base that may change while stream job is running.
It happens when stream/commit parallel jobs are running on the same
backing chain. The base node of the stream job may be a top node of
the parallel commit job and can change before the stream job is
completed. We avoid that dependency by introducing the bottom node.

v3:
bottom = bdrv_find_overlay() moved into the stream_start()

v2:
The function bdrv_find_overlay() with the same functionality has been
used in the qmp_block_stream() to find a bottom node.
The algorithm in the bdrv_do_is_allocated_above() was simplified.
The commit messages were modified.

Discussed in the e-mail threads with the message IDs
<1553866154-257311-1-git-send-email-andrey.shinkevich@virtuozzo.com>
<1550762799-830661-1-git-send-email-andrey.shinkevich@virtuozzo.com>
<1554120365-39119-1-git-send-email-andrey.shinkevich@virtuozzo.com>

Andrey Shinkevich (3):
  block: include base when checking image chain for block allocation
  block/stream: refactor stream_run: drop goto
  block/stream: introduce a bottom node

 block/io.c             | 33 ++++++++++++++++++++----
 block/stream.c         | 69 +++++++++++++++++++++++++-------------------------
 block/trace-events     |  2 +-
 include/block/block.h  |  4 +++
 tests/qemu-iotests/245 |  4 +--
 5 files changed, 69 insertions(+), 43 deletions(-)

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2019-04-09 13:07 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-05 16:56 [Qemu-devel] [PATCH v3 0/3] block/stream: get rid of the base Andrey Shinkevich
2019-04-05 16:56 ` Andrey Shinkevich
2019-04-05 16:56 ` [Qemu-devel] [PATCH v3 1/3] block: include base when checking image chain for block allocation Andrey Shinkevich
2019-04-05 16:56   ` Andrey Shinkevich
2019-04-08 15:03   ` Alberto Garcia
2019-04-08 15:03     ` Alberto Garcia
2019-04-08 15:14     ` Vladimir Sementsov-Ogievskiy
2019-04-08 15:14       ` Vladimir Sementsov-Ogievskiy
2019-04-08 15:16     ` Andrey Shinkevich
2019-04-08 15:16       ` Andrey Shinkevich
2019-04-08 15:22       ` Alberto Garcia
2019-04-08 15:22         ` Alberto Garcia
2019-04-08 15:29         ` Andrey Shinkevich
2019-04-08 15:29           ` Andrey Shinkevich
2019-04-05 16:56 ` [Qemu-devel] [PATCH v3 2/3] block/stream: refactor stream_run: drop goto Andrey Shinkevich
2019-04-05 16:56   ` Andrey Shinkevich
2019-04-05 16:56 ` [Qemu-devel] [PATCH v3 3/3] block/stream: introduce a bottom node Andrey Shinkevich
2019-04-05 16:56   ` Andrey Shinkevich
2019-04-08 14:08   ` Vladimir Sementsov-Ogievskiy
2019-04-08 14:08     ` Vladimir Sementsov-Ogievskiy
2019-04-08 15:39   ` Alberto Garcia
2019-04-08 15:39     ` Alberto Garcia
2019-04-08 15:43     ` Andrey Shinkevich
2019-04-08 15:43       ` Andrey Shinkevich
2019-04-08 18:17     ` Andrey Shinkevich
2019-04-08 18:17       ` Andrey Shinkevich
2019-04-09 13:06       ` Alberto Garcia
2019-04-09 13:06         ` Alberto Garcia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).