Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 20d59023 authored by Goldwyn Rodrigues's avatar Goldwyn Rodrigues Committed by Jens Axboe
Browse files

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: fbbaf700 ("block: trace completion of all bios.")
Signed-off-by: default avatarGoldwyn Rodrigues <rgoldwyn@suse.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 475a055e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}