Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp110920rwe; Thu, 13 Apr 2023 23:16:53 -0700 (PDT) X-Google-Smtp-Source: AKy350Zcs1e5CTMWulWdQJ4NuiooXGiuaO6adKKoGklqrNDViTW1MIxItUHsULhKXU6zJdYeEe/4 X-Received: by 2002:a05:6a20:3ca7:b0:e8:e097:88c4 with SMTP id b39-20020a056a203ca700b000e8e09788c4mr11371554pzj.26.1681453012799; Thu, 13 Apr 2023 23:16:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681453012; cv=none; d=google.com; s=arc-20160816; b=slApGR3Z6LTCaoEfr88kl+sKE5FOPA+d9YltvUkeKBJ3L8JwsJp1GJKfnwqJ+ncowW bwvIOpQsssLkq/lFh2nD4a0lAgozqrUstC9NLcY0h9cp7ax4TkebLqJhlNgloMFCwpQq HssPtHRRNrXp4tERxhC8Q7COld3gDqG2+y7dWHIzwgKoyqj+EbF/PSeveWw8R6N99/Oq gmXSdFvyMWOrsuCPwJTEhN10eErvFsIPmLnUwoy5bbexhHUj5uB1x3ExcTnH/SE/jXtR ioyw1hBP/3dEtq2GV5OVyl3IL/tu+KsCzVKZgLt1LQxKcQFO+dYlQNpybJIo9cMENXrl XRgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nhEU6trFR/zXM102avw1Xqh9MbixmvEPkZoZ4Y0dEcg=; b=speV+cnxXJzWAFCgxvwqYpVGF7xng9AT5RCt3RGOyErLxBTvMQND0HJph13yIA8qy9 0XW7uqz6P9qEE0Yb/V2qePYd2hTMTQFuyP+Be8Gk9pdEyT5lDH268Bgp60zLDedMiAkv 5FdWPs/C2BG2yJGRO8WCA4+tC9NccVP8bsK3528nm6xvH56G3SyYHmZOLewtcwzlMK/z VPsu2+nA9J3EDK+dtg+j5uVTy9zaDaVMn70LvN9Px59Dygec7CymuaPa6V4zFQO6aTYQ XRC+lJ/+UkwaiXxgBCOrbcG5MxjEeLYQgubzShwpOZxGo5UbWU/AOuHT3Qxz4VOBZzSr VXBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=wuFVNYGu; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x190-20020a6386c7000000b0051410c79705si3843131pgd.867.2023.04.13.23.16.36; Thu, 13 Apr 2023 23:16:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=wuFVNYGu; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229766AbjDNGEv (ORCPT + 99 others); Fri, 14 Apr 2023 02:04:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229997AbjDNGEp (ORCPT ); Fri, 14 Apr 2023 02:04:45 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84D0255AB; Thu, 13 Apr 2023 23:04:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=nhEU6trFR/zXM102avw1Xqh9MbixmvEPkZoZ4Y0dEcg=; b=wuFVNYGutUBoobXw3zhGGSo7i2 CbgR/CwxrYQcmazhxyhhlkY3XfeDvRddEyEKYDotmhXCiz4aPeKPx4nTNrY/mxd760tD3DDjUN4jv V25TAcUDjtGWygcMsscB7FVdYqDdD7V0I+xfxzWxCLuzKPCzBug4Mu3vteZ3naCE5sL+GJ7zQtODw U4oCHs6Qc6XJbMmw1fC0BPhpasWgOoYTkfLdflNQEWa6QAM8c+srHo/tTXL6n8Tlqtbz2zYJTerct XxCRVPKoeWgpjIllW4J28wpQDJBfx7I30cV2yKcon1O3YRsg7l8eBh/g3to1amkteawHcruJqNWmO 2h4FwyoA==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1pnCY7-008Qdl-1F; Fri, 14 Apr 2023 06:04:43 +0000 Date: Thu, 13 Apr 2023 23:04:43 -0700 From: Christoph Hellwig To: "Ritesh Harjani (IBM)" Cc: linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, Jan Kara , Christoph Hellwig , "Darrick J . Wong" , Ojaswin Mujoo , Disha Goel Subject: Re: [RFCv3 10/10] iomap: Add trace points for DIO path Message-ID: References: <93ab8386c4620395c5e674a7930506895fc758ef.1681365596.git.ritesh.list@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <93ab8386c4620395c5e674a7930506895fc758ef.1681365596.git.ritesh.list@gmail.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org > + trace_iomap_dio_rw_begin(iocb, iter, dio_flags, done_before, ret); > dio = __iomap_dio_rw(iocb, iter, ops, dops, dio_flags, private, > done_before); > if (IS_ERR_OR_NULL(dio)) { > @@ -689,6 +691,7 @@ iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter, > } > ret = iomap_dio_complete(dio); > out: > + trace_iomap_dio_rw_end(iocb, iter, dio_flags, done_before, ret); The trace_iomap_dio_rw_end tracepoint heere seems a bit weird, and we'll miss it for file systems using __iomap_dio_rw directly. I'd instead add a trace_iomap_dio_rw_queued for the case where __iomap_dio_rw returns ERR_PTR(-EIOCBQUEUED), as otherwise we're nicely covered by the complete trace points. > + __print_flags(__entry->dio_flags, "|", TRACE_IOMAP_DIO_STRINGS), Please avoid the overly lone line here.