diff options
author | Goldwyn Rodrigues <rgoldwyn@suse.com> | 2018-01-23 09:10:19 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-04-26 11:02:10 +0200 |
commit | c6c6e38aeff2b4131de2718a993d07995844dcc8 (patch) | |
tree | e6ba22bbdeeea8af11fad69e947807f67e5ae259 /block | |
parent | f2e73df302f31b588086b6eb5a4151b196faf427 (diff) | |
download | linux-stable-c6c6e38aeff2b4131de2718a993d07995844dcc8.tar.gz linux-stable-c6c6e38aeff2b4131de2718a993d07995844dcc8.tar.bz2 linux-stable-c6c6e38aeff2b4131de2718a993d07995844dcc8.zip |
block: Set BIO_TRACE_COMPLETION on new bio during split
[ Upstream commit 20d59023c5ec4426284af492808bcea1f39787ef ]
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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'block')
-rw-r--r-- | block/bio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/bio.c b/block/bio.c index dbaa82c967f4..90f19d7df66c 100644 --- a/block/bio.c +++ b/block/bio.c @@ -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; } |