OSDN Git Service

dm snapshot: do not split read bios sent to snapshot-origin target
authorMikulas Patocka <mpatocka@redhat.com>
Fri, 14 Mar 2014 22:43:07 +0000 (18:43 -0400)
committerMike Snitzer <snitzer@redhat.com>
Tue, 3 Jun 2014 17:44:07 +0000 (13:44 -0400)
commit298eaa89b02e88dc9081f8761a957f7cd5e8b201
tree19e9c438300cfee59abc6e499ab6bfaa872a9de5
parent599cdf3bfbe21fe94f4416c9e54363b285c9532a
dm snapshot: do not split read bios sent to snapshot-origin target

Change the snapshot-origin target so that only write bios are split on
chunk boundary.  Read bios are passed unchanged to the underlying
device, so they don't have to be split.

Later, we could change the target so that it accepts a larger write bio
if it spans an area that is completely covered by snapshot exceptions.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-snap.c