]> git.proxmox.com Git - mirror_qemu.git/commit - block.c
block: Generalise and optimise COR serialisation
authorKevin Wolf <kwolf@redhat.com>
Wed, 4 Dec 2013 15:43:44 +0000 (16:43 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 24 Jan 2014 16:40:02 +0000 (17:40 +0100)
commit2dbafdc012d3ea81a97fec6226ca82d644539c9a
treeeed999e7c42d8262fcdedaec8a8ed28962de6859
parentec746e10cb2e6276a8d2e036454792fe0674864a
block: Generalise and optimise COR serialisation

Change the API so that specific requests can be marked serialising. Only
these requests are checked for overlaps then.

This means that during a Copy on Read operation, not all requests
overlapping other requests are serialised any more, but only those that
actually overlap with the specific COR request.

Also remove COR from function and variable names because this
functionality can be useful in other contexts.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
block.c
include/block/block_int.h