Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp236883rwj; Fri, 23 Dec 2022 00:11:57 -0800 (PST) X-Google-Smtp-Source: AMrXdXtzWH+gfbL8kTNNHRpZPgZSq67SK8EEdCQmg490dk87Qr8VoGbfZGT6jMvwqWsV4frM2NZf X-Received: by 2002:a05:6a21:6d90:b0:b0:3318:ab59 with SMTP id wl16-20020a056a216d9000b000b03318ab59mr14467299pzb.14.1671783117091; Fri, 23 Dec 2022 00:11:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671783117; cv=none; d=google.com; s=arc-20160816; b=0X+tb7lZDQ4HbAcCvcRQwg8Z4KZeZKvuhD/J3q55J57sCMcyhvGBJS1TSa+92jajP2 09ccEPN4tR5b2mAj+udx6yPA2sdGBeupb7734azgWoE2sClRfXIOu1f5Umj9+JVZG8C+ dMdLDyuMQaFGh9predrHSH8uOkssO/InSA66GcSlml/qrOYiUohpjTYTn6pvVASYzvT1 YhjWshP498GWaoyvQfRGkEQLR++RC8zeBiVRKPDWjvVhLyhvuUHlvwIjrkxj1Gx0MrOB NaGECMqJK2m6H+DLTU1RzKHboQbgnpHB/TbX5ke3lBnbbEZ5QwrpcTi+04MtXSe6/LuR 7WHA== 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=dccRK/NCh2GPqlv5x5YSRv6i4zId2ndL7dnL9XPRIwQ=; b=FiYJN0P4wxL3dRte4acgCiXsIxdsHJolty3P3lCfspD4T/MLxadKvq+oPEv+Asuie9 wF57fhGk1ojecILkphkTBkk7Di3UqpWP6mhUbqo9EKQm+0yOQ4xhhqmpfSN1aXc+u/d0 j1dLScP7/CTW6dno+A/oARdWJoP+km4dOlfxpJszzl/iQEbySSBqyFJl91DWo3bn+hCt pIMJU5axVTGfoiKFb+dqVA3/BejHnGq2FWcOL5YDw4WKXhTNQoCw52646KOk+2OgAqob tHLsUocOIVUWZy2jb8MtSAveCcDz9c2ERjhwLfiqszUr3lAUXShpgDK4watG7FqW0Aoa YyWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=ahiFQR4c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 c8-20020a655a88000000b004789976b13csi3036121pgt.254.2022.12.23.00.11.47; Fri, 23 Dec 2022 00:11:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=ahiFQR4c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229506AbiLWIBr (ORCPT + 67 others); Fri, 23 Dec 2022 03:01:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230176AbiLWIBo (ORCPT ); Fri, 23 Dec 2022 03:01:44 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8573631DCB; Fri, 23 Dec 2022 00:01:43 -0800 (PST) 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=dccRK/NCh2GPqlv5x5YSRv6i4zId2ndL7dnL9XPRIwQ=; b=ahiFQR4cd0+5AYmdeV9wNir9tD TSoYeBf7IpEs0EIV1w0GpezPG6sJmCJjVz+H6aPBk1DxF4RLmLoO+t8W0WDQM0MdWXSv5hah4+mJj E7hVGCKoxvxYiDbTwhianbNH1SbD8PrQlZYIAbIxjrsBW+7MhEqfZihawAq32z0LGO7ylHuqygGEz RhqH7agivE+HZikkX+Ge2jl/IW2eNBrWmSDNa3HtIL4Dpq5czxtBShAaQWiAhqX9pgVuWxqReBfFq O3DRD4YoP5crjYhUClUKolKQdAVXZ1Yw7ENl27MCTcD/YgFuiUizkEHbZXr1sOGAZxwC5+7zr9V2h bYbQ69dA==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1p8czr-0051zM-Ox; Fri, 23 Dec 2022 08:01:39 +0000 Date: Fri, 23 Dec 2022 00:01:39 -0800 From: Christoph Hellwig To: Zhong Jinghua Cc: axboe@kernel.dk, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, yi.zhang@huawei.com, yukuai3@huawei.com Subject: Re: [PATCH-next v2] blk-mq: cleanup unused methods: blk_mq_hw_sysfs_store Message-ID: References: <20221221083421.786849-1-zhongjinghua@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221221083421.786849-1-zhongjinghua@huawei.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-kernel@vger.kernel.org On Wed, Dec 21, 2022 at 04:34:21PM +0800, Zhong Jinghua wrote: > We found that the blk_mq_hw_sysfs_store interface has no place to use. > The object default_hw_ctx_attrs using blk_mq_hw_sysfs_ops only uses > the show method and does not use the store method. > > Since this patch: > 4a46f05ebf99 ("blk-mq: move hctx and ctx counters from sysfs to debugfs") > moved the store method to debugfs, the store method is not used anymore. > > So let me do some tiny work to clean up unused code. Please also remove the now unused store method from struct blk_mq_hw_ctx_sysfs_entry.