Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754950AbYJ3LNL (ORCPT ); Thu, 30 Oct 2008 07:13:11 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753214AbYJ3LM5 (ORCPT ); Thu, 30 Oct 2008 07:12:57 -0400 Received: from pasmtpb.tele.dk ([80.160.77.98]:47820 "EHLO pasmtpB.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753212AbYJ3LM4 (ORCPT ); Thu, 30 Oct 2008 07:12:56 -0400 Date: Thu, 30 Oct 2008 12:11:45 +0100 From: Jens Axboe To: Arnaldo Carvalho de Melo Cc: Mathieu Desnoyers , Linux Kernel Mailing List Subject: Re: [PATCH][v3] blktrace: conversion to tracepoints Message-ID: <20081030111144.GQ31673@kernel.dk> References: <20081029120556.GD28123@ghostprotocols.net> <20081029131855.GC31673@kernel.dk> <20081029194323.GA25056@ghostprotocols.net> <20081030073134.GM31673@kernel.dk> <20081030110352.GB25056@ghostprotocols.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081030110352.GB25056@ghostprotocols.net> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2121 Lines: 52 On Thu, Oct 30 2008, Arnaldo Carvalho de Melo wrote: > Em Thu, Oct 30, 2008 at 08:31:34AM +0100, Jens Axboe escreveu: > > On Wed, Oct 29 2008, Arnaldo Carvalho de Melo wrote: > > > Em Wed, Oct 29, 2008 at 02:18:55PM +0100, Jens Axboe escreveu: > > > > > Feel free to point any disgusting aspect, perhaps there is at > > > > > least one to warn me about fixing 8-) > > > > > > > > You my as well pass the members separately now that it's a specific call > > > > anyway, to avoid doing the calculation when tracing is disabled. > > > > > > > > Patch looks straight forward. Perhaps it would be cleaner to use an > > > > atomic type for the reference? > > > > > > Done and made the old pdu_int + NULL bio (trace_block_unplug_{io,timer}) > > > functions to receive just the request_queue. > > > > > > Found and fixed a bug in the process: > > > > > > In v2 we had: > > > > > > + unregister_trace_block_rq_insert(blk_add_trace_rq_insert); > > > + unregister_trace_block_rq_insert(blk_add_trace_rq_abort); > > > > > > Where it should have been: > > > > > > + unregister_trace_block_rq_insert(blk_add_trace_rq_insert); > > > + unregister_trace_block_rq_abort(blk_add_trace_rq_abort); > > > > > > c'n'p roblem! > > > > > > Also removed the leftover tracepoint_synchronize_unregister macro, it > > > was already merged righfully as an inline function. > > > > > > Everything should be rock solid now 8) > > > > I'll apply this for 2.6.29. I'm assuming you have tested this as well? > > Yes, I tested it, run 'btrace /dev/sda' several times, while doing a > 45 GB backup using rsync over NFS, etc. So it should have exercised the > tracepoints use and repeated registrater/unregister cycles. Awesome, just wanted to know what level of testing you had done (from "none" to "doesn't crash" to "actually works"), so thanks for that. -- Jens Axboe -- 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/