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>
This commit is contained in:
Родитель
0a4a1047a4
Коммит
f3e1d26ede
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче