All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] block-stream: include base into job node list
@ 2019-02-21 15:26 Andrey Shinkevich
  2019-02-21 15:26 ` [Qemu-devel] [PATCH 1/2] iotests: 030 TestParallelOps non-shared base node Andrey Shinkevich
  2019-02-21 15:26 ` [Qemu-devel] [PATCH 2/2] block-stream: include base into job node list Andrey Shinkevich
  0 siblings, 2 replies; 7+ messages in thread
From: Andrey Shinkevich @ 2019-02-21 15:26 UTC (permalink / raw)
  To: qemu-devel, qemu-block
  Cc: berto, mreitz, kwolf, den, vsementsov, andrey.shinkevich

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

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

end of thread, other threads:[~2019-03-08 14:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-21 15:26 [Qemu-devel] [PATCH 0/2] block-stream: include base into job node list Andrey Shinkevich
2019-02-21 15:26 ` [Qemu-devel] [PATCH 1/2] iotests: 030 TestParallelOps non-shared base node Andrey Shinkevich
2019-02-21 15:26 ` [Qemu-devel] [PATCH 2/2] block-stream: include base into job node list Andrey Shinkevich
2019-02-25 16:39   ` Vladimir Sementsov-Ogievskiy
2019-02-26 13:33     ` Alberto Garcia
2019-02-26 16:39       ` Andrey Shinkevich
2019-03-08 14:00   ` Alberto Garcia

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.