summaryrefslogtreecommitdiffstats
path: root/block/bio.c
diff options
context:
space:
mode:
authorGoldwyn Rodrigues <rgoldwyn@suse.com>2018-01-23 09:10:19 -0700
committerJens Axboe <axboe@kernel.dk>2018-01-23 09:10:19 -0700
commit20d59023c5ec4426284af492808bcea1f39787ef (patch)
treec47ccfe4a3b59d72496faa67e3fd7f466bd23a29 /block/bio.c
parent475a055e62a1eb92f4358ad8a9059df973c190ac (diff)
downloadop-kernel-dev-20d59023c5ec4426284af492808bcea1f39787ef.zip
op-kernel-dev-20d59023c5ec4426284af492808bcea1f39787ef.tar.gz
block: Set BIO_TRACE_COMPLETION on new bio during split
We inadvertently set it again on the source bio, but we need to set it on the new split bio instead. Fixes: fbbaf700e7b1 ("block: trace completion of all bios.") Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bio.c')
-rw-r--r--block/bio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/bio.c b/block/bio.c
index fe1efbe..77993fb 100644
--- a/block/bio.c
+++ b/block/bio.c
@@ -1808,7 +1808,7 @@ struct bio *bio_split(struct bio *bio, int sectors,
bio_advance(bio, split->bi_iter.bi_size);
if (bio_flagged(bio, BIO_TRACE_COMPLETION))
- bio_set_flag(bio, BIO_TRACE_COMPLETION);
+ bio_set_flag(split, BIO_TRACE_COMPLETION);
return split;
}
OpenPOWER on IntegriCloud