[Qemu-devel] [PATCH 0/2] block-stream: include base into job node list

Andrey Shinkevich posted 2 patches 6 years, 8 months ago
Test asan passed
Test docker-mingw@fedora passed
Test docker-clang@ubuntu failed
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1550762799-830661-1-git-send-email-andrey.shinkevich@virtuozzo.com
Maintainers: Jeff Cody <jcody@redhat.com>, Max Reitz <mreitz@redhat.com>, Kevin Wolf <kwolf@redhat.com>
block/stream.c         |  9 +++++++++
tests/qemu-iotests/030 | 34 ++++++++++++++++++----------------
2 files changed, 27 insertions(+), 16 deletions(-)
[Qemu-devel] [PATCH 0/2] block-stream: include base into job node list
Posted by Andrey Shinkevich 6 years, 8 months ago
The block-stream job needs to own the base node as the limiter for
the copy-on-read operation. So, the base node is included in the
job node list by calling to the function block_job_add_bdrv().
Also, the block-stream job would not allow the base node to go
away due to the graph modification, e.g. when a filter node is
inserted between the bottom node and the base node.
For that reason, the flag BLK_PERM_GRAPH_MOD is unset in the
shared permission bit mask of the base node.

Andrey Shinkevich (2):
  iotests: 030 TestParallelOps non-shared base node
  block-stream: include base node into the job protected list

 block/stream.c         |  9 +++++++++
 tests/qemu-iotests/030 | 34 ++++++++++++++++++----------------
 2 files changed, 27 insertions(+), 16 deletions(-)

-- 
1.8.3.1