Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756322AbbLCOdm (ORCPT ); Thu, 3 Dec 2015 09:33:42 -0500 Received: from mail-lb0-f177.google.com ([209.85.217.177]:33789 "EHLO mail-lb0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750844AbbLCOdl (ORCPT ); Thu, 3 Dec 2015 09:33:41 -0500 From: Mike Krinkin To: axboe@kernel.dk Cc: hch@lst.de, kent.overstreet@gmail.com, dmonakhov@openvz.org, linux-kernel@vger.kernel.org, Mike Krinkin Subject: [PATCH] block: add call to split trace point Date: Thu, 3 Dec 2015 17:32:30 +0300 Message-Id: <1449153150-4603-1-git-send-email-krinkin.m.u@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1447786432-7553-1-git-send-email-krinkin.m.u@gmail.com> References: <1447786432-7553-1-git-send-email-krinkin.m.u@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1267 Lines: 40 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 --- block/blk-merge.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/block/blk-merge.c b/block/blk-merge.c index de5716d8..3bb4537 100644 --- a/block/blk-merge.c +++ b/block/blk-merge.c @@ -7,6 +7,8 @@ #include #include +#include + #include "blk.h" static struct bio *blk_bio_discard_split(struct request_queue *q, @@ -143,6 +145,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; } -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/