block: Make overlap range for serialisation dynamic
authorKevin Wolf <kwolf@redhat.com>
Wed, 4 Dec 2013 16:08:50 +0000 (17:08 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 24 Jan 2014 16:40:02 +0000 (17:40 +0100)
commit7327145f63a224c9ba9c16d0c29781feffef8dc6
treeec973feb3da78d91386725321ee3108d050176d5
parent2dbafdc012d3ea81a97fec6226ca82d644539c9a
block: Make overlap range for serialisation dynamic

Copy on Read wants to serialise with all requests touching the same
cluster, so wait_serialising_requests() rounded to cluster boundaries.
Other users like alignment RMW will have different requirements, though
(requests touching the same sector), so make it dynamic.

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