]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf358dd12993c29321cfa5a1d9f61ca1ccbc7f025
tree19e9c438300cfee59abc6e499ab6bfaa872a9de5
parentfb30d207361514e48adf750d1cfc5cadf820d5b7
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