Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

blk-crypto: fix missing blktrace bio split events

trace_block_split() is missing, resulting in blktrace inability to catch
BIO split events and making it harder to analyze the BIO sequence.

Cc: stable@vger.kernel.org
Fixes: 488f6682c832 ("block: blk-crypto-fallback for Inline Encryption")
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Yu Kuai and committed by
Jens Axboe
06d712d2 22f16621

+3
+3
block/blk-crypto-fallback.c
··· 18 18 #include <linux/module.h> 19 19 #include <linux/random.h> 20 20 #include <linux/scatterlist.h> 21 + #include <trace/events/block.h> 21 22 22 23 #include "blk-cgroup.h" 23 24 #include "blk-crypto-internal.h" ··· 231 230 bio->bi_status = BLK_STS_RESOURCE; 232 231 return false; 233 232 } 233 + 234 234 bio_chain(split_bio, bio); 235 + trace_block_split(split_bio, bio->bi_iter.bi_sector); 235 236 submit_bio_noacct(bio); 236 237 *bio_ptr = split_bio; 237 238 }