mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 23:25:07 +00:00
block: Set BIO_TRACE_COMPLETION on new bio during split
[ Upstream commit20d59023c5
] We inadvertently set it again on the source bio, but we need to set it on the new split bio instead. Fixes:fbbaf700e7
("block: trace completion of all bios.") Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f2e73df302
commit
c6c6e38aef
1 changed files with 1 additions and 1 deletions
|
@ -1893,7 +1893,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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue