Skip to content

Commit

Permalink
dm: mark split bio as cloned
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Martin K. Petersen authored and Alasdair G Kergon committed Oct 21, 2008
1 parent 0a4a104 commit f3e1d26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/md/dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f3e1d26

Please sign in to comment.