Message ID | 87inrhecbl.fsf@notabene.neil.brown.name (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/block/bio.c b/block/bio.c index db85c5753a76..0aa755abd10b 100644 --- a/block/bio.c +++ b/block/bio.c @@ -1804,6 +1804,8 @@ struct bio *bio_split(struct bio *bio, int sectors, bio_integrity_trim(split, 0, sectors); bio_advance(bio, split->bi_iter.bi_size); + trace_block_split(bdev_get_queue(bio->bi_bdev), split, + bio->bi_iter.bi_sector); return split; } diff --git a/block/blk-merge.c b/block/blk-merge.c index 2642e5fc8b69..82cdd35a9f07 100644 --- a/block/blk-merge.c +++ b/block/blk-merge.c @@ -217,7 +217,6 @@ void blk_queue_split(struct request_queue *q, struct bio **bio, split->bi_opf |= REQ_NOMERGE; bio_chain(split, *bio); - trace_block_split(q, split, (*bio)->bi_iter.bi_sector); generic_make_request(*bio); *bio = split; }