summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorMartin K. Petersen <martin.petersen@oracle.com>2008-10-21 17:45:04 +0100
committerAlasdair G Kergon <agk@redhat.com>2008-10-21 17:45:04 +0100
commitf3e1d26ede3fb15c06904d700f1d7b21bba2215e (patch)
tree18ce3a0e4c4005d9737b840b37440e4ad85ed860 /drivers/md
parent0a4a1047a445062793d9004bcb0d52756726fdf5 (diff)
downloadlinux-f3e1d26ede3fb15c06904d700f1d7b21bba2215e.tar.gz
linux-f3e1d26ede3fb15c06904d700f1d7b21bba2215e.tar.bz2
linux-f3e1d26ede3fb15c06904d700f1d7b21bba2215e.zip
dm: mark split bio as cloned
When a bio gets split, mark its fragments with the BIO_CLONED flag. Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index 327de03a5bdf..829d9fc66453 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -669,6 +669,7 @@ static struct bio *split_bvec(struct bio *bio, sector_t sector,
clone->bi_size = to_bytes(len);
clone->bi_io_vec->bv_offset = offset;
clone->bi_io_vec->bv_len = clone->bi_size;
+ clone->bi_flags |= 1 << BIO_CLONED;
return clone;
}