diff options
author | Mike Krinkin <krinkin.m.u@gmail.com> | 2015-12-03 09:32:30 -0500 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-12-03 12:18:44 -0500 |
commit | cda22646adaa453519fac28222f20b0d73aa8562 (patch) | |
tree | ca17d1f83e01c6622bdf92634401d263640ab926 /block | |
parent | bffed457160ab48282ca6d0d58646b3bbc2fa554 (diff) |
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 4b1faf931650d4a35b2a ("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>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-merge.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/block/blk-merge.c b/block/blk-merge.c index 41a55ba0d78e..0e5643a5d1c3 100644 --- a/block/blk-merge.c +++ b/block/blk-merge.c | |||
@@ -7,6 +7,8 @@ | |||
7 | #include <linux/blkdev.h> | 7 | #include <linux/blkdev.h> |
8 | #include <linux/scatterlist.h> | 8 | #include <linux/scatterlist.h> |
9 | 9 | ||
10 | #include <trace/events/block.h> | ||
11 | |||
10 | #include "blk.h" | 12 | #include "blk.h" |
11 | 13 | ||
12 | static struct bio *blk_bio_discard_split(struct request_queue *q, | 14 | 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, | |||
159 | split->bi_rw |= REQ_NOMERGE; | 161 | split->bi_rw |= REQ_NOMERGE; |
160 | 162 | ||
161 | bio_chain(split, *bio); | 163 | bio_chain(split, *bio); |
164 | trace_block_split(q, split, (*bio)->bi_iter.bi_sector); | ||
162 | generic_make_request(*bio); | 165 | generic_make_request(*bio); |
163 | *bio = split; | 166 | *bio = split; |
164 | } | 167 | } |