]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
dm: mark split bio as cloned
authorMartin K. Petersen <martin.petersen@oracle.com>
Tue, 21 Oct 2008 16:45:04 +0000 (17:45 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Tue, 21 Oct 2008 16:45:04 +0000 (17:45 +0100)
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>
drivers/md/dm.c

index 327de03a5bdfed7f11b0904abb72f3eac65fc92d..829d9fc66453f9e9b5e91761ae285e02a9cda92a 100644 (file)
@@ -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;
 }