block: add call to split trace point
authorMike Krinkin <krinkin.m.u@gmail.com>
Thu, 3 Dec 2015 14:32:30 +0000 (17:32 +0300)
committerJens Axboe <axboe@fb.com>
Thu, 3 Dec 2015 17:18:44 +0000 (10:18 -0700)
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>
block/blk-merge.c

index 41a55ba0d78e8a97b5707a9194cce3b6ebd1c811..0e5643a5d1c35a5973c39b35eb6c2e3f4336c8d6 100644 (file)
@@ -7,6 +7,8 @@
 #include <linux/blkdev.h>
 #include <linux/scatterlist.h>
 
+#include <trace/events/block.h>
+
 #include "blk.h"
 
 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,
                split->bi_rw |= REQ_NOMERGE;
 
                bio_chain(split, *bio);
+               trace_block_split(q, split, (*bio)->bi_iter.bi_sector);
                generic_make_request(*bio);
                *bio = split;
        }
This page took 0.059823 seconds and 5 git commands to generate.