Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp345032pxj; Thu, 24 Jun 2021 00:06:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwySdG4ndorrFCQG3aS/c2E1a+gDcGgelAGorl7tCsoCnON0l1k2GxuLdHUy5gCqBemo3IW X-Received: by 2002:a17:906:3c56:: with SMTP id i22mr3852098ejg.369.1624518367661; Thu, 24 Jun 2021 00:06:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624518367; cv=none; d=google.com; s=arc-20160816; b=h02aCUn81EcvH1Y845LVU9+Ji1wKUIG0OLiGfI3+YmErda8Sqi1o+ybsAy09od6Q+p 0GCZfcENmdVFyYAiU/HSlN7Pg8RnIksgkQCnYWzCwQfK0niweJ1LQsiTv487IQ59RbNY CLDNNFxjBjoVUjeTLhhJLI9omiLVuk4czXBgIQYJrhvKquC6dwzfYJT6/0bkak3X9lVG RQ1NUNqiIV2UV/45tW3Oo+fWsUVIlWx4UscIL+/4fJDctHkPmSzPbuaAMeh3C3z7ibV+ xOqv3VTkcUAYcbYE+L2nF0OFTg79Q1bwDJ+PjlXJd5g6VaH5lED5Gc0Z565UiX47g4ix tjvA== 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=viVnU7GAcltDcfjhPF6DDIbci/SBwqdjKknyNfP+27I=; b=RdDXvEu2aKNVohqZGSBEfTzgieoBUG2sLxikxq0yrd7yzp853vn6TJako9RK9RtNpg 1Eb2hAZrztiHkEUfQEP6b2T7SXIXbSQmJPVCc3Q9i74C9QlpC3+ngFsn8VssyzmhYger q+lG3zqrHsOw7C2ty4piQWke9uSG/Km6xILsUK7EBHB3ZAj/YJw5ZUcMN9wRJAXk+BWX a9h6u1KTyOhF2bbcJOZruas67ZJRDePDr89ZIix46bsi+Vxla4TSQIYyFYAshfQSV9E+ 7UAcKc8TGXY4pjdh5XXLK59KcaQnSOLnFnFd2D1eDTNDKOOxVK0eVfhITryohhEW03FD Q0/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=vKlR1Uhw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l20si2279968edr.191.2021.06.24.00.05.43; Thu, 24 Jun 2021 00:06:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=vKlR1Uhw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231361AbhFXHEx (ORCPT + 99 others); Thu, 24 Jun 2021 03:04:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbhFXHEw (ORCPT ); Thu, 24 Jun 2021 03:04:52 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 533FDC061574; Thu, 24 Jun 2021 00:02:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=viVnU7GAcltDcfjhPF6DDIbci/SBwqdjKknyNfP+27I=; b=vKlR1UhwOcnjlPpk164wSBDzUs 2zFS7XTIr2+eIhRqZRYEbT0qYrV25fT9kcief3ytTIWJRcuwMzYYDjz13mOoVtp6OMk6CmrWrNxH3 Sw1OLDjJh8kE2G3nyEqDEhnMS/wDcM3gCtvB/vBJjvI0xkOG1PV+sp7eGOzRBmPKgfus5dS72fXy5 +x+xQ7cJ6yGxRgKARq1Sf792du1+VcLKJIGbf7HhBfUSsKIcdgkqIIwluJH7a8YzfMgNOqdJ2XfPP cnlh9s0ko3kDXpk2rEC9kneaHFJbi2jk1kl3S93sCkyBzz1OM0uZvUVp+0mRYzMMyYu/tzF19QiOe qlK8KbHg==; Received: from hch by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1lwJNF-00GHYM-Mj; Thu, 24 Jun 2021 07:02:09 +0000 Date: Thu, 24 Jun 2021 08:02:05 +0100 From: Christoph Hellwig To: Edward Hsieh Cc: Christoph Hellwig , axboe@kernel.dk, neilb@suse.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, s3t@synology.com, bingjingc@synology.com, cccheng@synology.com, Wade Liang Subject: Re: [PATCH v3] block: fix trace completion for chained bio Message-ID: References: <20210616030810.4901-1-edwardh@synology.com> <1204c32a-e3b3-95dd-b2b5-b9f6eef4f022@synology.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1204c32a-e3b3-95dd-b2b5-b9f6eef4f022@synology.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 24, 2021 at 02:50:30PM +0800, Edward Hsieh wrote: > We are suggested by Neil Brown in the last version that from the > comment, the bio_chain_endio handling is used *only* to avoid > deep recursion so it should be at the end of the function. > Therefore, the position of blk_throtl_bio_endio() and bio_uninit() > are a bit odd. This is BS. Placement of an else after a returning statement does not change code generation. > If it's not necessary then V2 patch should work to fix the > missing completion traces. Should we resend PATCH V2? Please send an updated version.