Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp878553rwb; Wed, 26 Jul 2023 04:32:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlEgALc8m90hklNVN+0KZDHK+jSLHGxl2uC33xUPo0c5TcnfZ/6a7oinYV3AS9nh++Y8JC1n X-Received: by 2002:a17:902:8f95:b0:1b8:6987:de84 with SMTP id z21-20020a1709028f9500b001b86987de84mr1646840plo.48.1690371133625; Wed, 26 Jul 2023 04:32:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690371133; cv=none; d=google.com; s=arc-20160816; b=DBLx4hiJNLN11LWQhO2XGOEfgl2Qv+paBbsj2yDOwK7Pv6Wo7HgZFR0i+s/bUt/7+O zXxQLEVq1qO+tGSqZ6QTeSlw3cpxUeVSdIrwfecTYVLqx+4gxTPI3InpdRxnFBJczXmp 9ODBR/A7kYvFzJe6JIpc1iLw/3nhpK6F952LzH2s04uBX9Mt8Sx/ThhsbcfW6Z/nyEIA f3pTd/EBSH3owM1h3gVRyR1qBY8bWyQPWIYLlDiGYaoYV4o62mgJ/F3MJ/2rESwPH96O tOYglbBm3NISpTLduhL/tcTT6luOQ2sy0rMOnVbnQTEEJ40FA8wPW/RHMgcKp759s1ez pgyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject; bh=0M/+HVhROW80ob6rDoxd+uhoutrGFIdTFrjq07S5xCQ=; fh=N4RpHfdhdjHV40HT55PDUJoqnua85P3yTsP6xYHKzKw=; b=ha7n6A9rrp7/u5JgL5UoV8jT42AvY9kNhK4vyjjvFaaV585UBgfF1h/R2W3ndsumJs YibWHcUL4Lvkix5eNa/tp0B1i53Yhof1II33TKNgmxH1QFgOLyn6IYEbIfxG+Rq+JXq/ BQvZeqsZguCauFOAucw9TkwLf82Igv46QgntxkbUhB1vXd7FKXo+6lvT8rgdqnWbNlgy eDMF/jitLdmshzku4fFvojJCtl+sZBWsU4q8RPpedkF2LioFW5HFb1IT6VbMoONReu9V mzPtxI6K2bzUzAQiz9oxzCV2RzbZeUcFcT1rGgI7rB8TAaKGbOMyVJeg76EOIZAKi4uo 4szA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z15-20020a1709027e8f00b001bb95a5cb9fsi7173143pla.522.2023.07.26.04.31.59; Wed, 26 Jul 2023 04:32:13 -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; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231918AbjGZLTu (ORCPT + 99 others); Wed, 26 Jul 2023 07:19:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230229AbjGZLTt (ORCPT ); Wed, 26 Jul 2023 07:19:49 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F54497 for ; Wed, 26 Jul 2023 04:19:48 -0700 (PDT) Received: from canpemm500005.china.huawei.com (unknown [172.30.72.54]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4R9rvp6zf6zLnsR; Wed, 26 Jul 2023 19:17:10 +0800 (CST) Received: from [10.174.176.34] (10.174.176.34) by canpemm500005.china.huawei.com (7.192.104.229) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 26 Jul 2023 19:19:45 +0800 Subject: Re: [PATCH] jbd2: Remove unused t_handle_lock To: Wang Jianjian , References: From: Zhang Yi Message-ID: <8138c559-325c-a4e3-1018-ca76ba185081@huawei.com> Date: Wed, 26 Jul 2023 19:19:45 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.176.34] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To canpemm500005.china.huawei.com (7.192.104.229) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 On 2023/7/24 22:58, Wang Jianjian wrote: > Since commit 4f98186848('jbd2: refactor wait logic for transaction > updates into a common function'), this lock has been no use. Hi, I don't think the commit is correct, it should be f7f497cb7024 ("jbd2: kill t_handle_lock transaction spinlock"). Thanks, Yi. > --- > include/linux/jbd2.h | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/include/linux/jbd2.h b/include/linux/jbd2.h > index d860499e15e4..8199235dbaf3 100644 > --- a/include/linux/jbd2.h > +++ b/include/linux/jbd2.h > @@ -636,11 +636,6 @@ struct transaction_s > */ > struct list_head t_inode_list; > > - /* > - * Protects info related to handles > - */ > - spinlock_t t_handle_lock; > - > /* > * Longest time some handle had to wait for running transaction > */ >