From: Martin K. Petersen Date: Tue, 21 Oct 2008 16:45:04 +0000 (+0100) Subject: dm: mark split bio as cloned X-Git-Tag: Ubuntu-5.2.0-15.16~32409^2~3 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=f3e1d26ede3fb15c06904d700f1d7b21bba2215e;p=mirror_ubuntu-eoan-kernel.git 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 Signed-off-by: Alasdair G Kergon --- 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; }