Skip to content

Commit cda2264

Browse files
krinkinmuaxboe
authored andcommitted
block: add call to split trace point
There is a split tracepoint that is supposed to be called when bio is splitted, and it was called in bio_split function until commit 4b1faf9 ("block: Kill bio_pair_split()"). But now, no one reports splits, so this patch adds call to trace_block_split back in blk_queue_split right after split. Signed-off-by: Mike Krinkin <krinkin.m.u@gmail.com> Signed-off-by: Jens Axboe <axboe@fb.com>
1 parent bffed45 commit cda2264

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

block/blk-merge.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#include <linux/blkdev.h>
88
#include <linux/scatterlist.h>
99

10+
#include <trace/events/block.h>
11+
1012
#include "blk.h"
1113

1214
static struct bio *blk_bio_discard_split(struct request_queue *q,
@@ -159,6 +161,7 @@ void blk_queue_split(struct request_queue *q, struct bio **bio,
159161
split->bi_rw |= REQ_NOMERGE;
160162

161163
bio_chain(split, *bio);
164+
trace_block_split(q, split, (*bio)->bi_iter.bi_sector);
162165
generic_make_request(*bio);
163166
*bio = split;
164167
}

0 commit comments

Comments
 (0)