Received: by 10.213.65.68 with SMTP id h4csp1805818imn; Thu, 5 Apr 2018 04:13:43 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/hnt45Oit7cMTlxygioVvMWmHZ0TQ76yjgSFgmskeQPtTbq4oX+0r7SZtwoRS/h+ewRWaA X-Received: by 10.101.88.140 with SMTP id d12mr787570pgu.408.1522926823385; Thu, 05 Apr 2018 04:13:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522926823; cv=none; d=google.com; s=arc-20160816; b=T3zG4XI7pTSwAzNQZi13sEDIHT1U87y0mZkdZw5Hdrp1URPGQY7M5SikMKCFka4EC+ +u/KAUtsngkA0T0V1dTYaP30NIYmt8ZnmOJUbbZ+16ctULH3XjRkAarl6yWTk3Exldzu Qi+YGpFQZbLJk+T7RwwzImHRy8h7r6r7qGWGONj7/Gt/cUurJBLsB2c4i22OoHWFQgvi WuFmBMUWzW0LDlHsYLUKx/Q9eQZ2w6V4hLAGgoToC53/A8jiK2B+/uJjYkIQxEqo09Ss tGmqtwfDcjrY747BsqQSJGerAE/BV0kpE99zUPxCTVtBcTWuCkFxQiVdFTSY8Mzm8PqZ 1uWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=aF3x+nGqWNvlPTYRiiXf9XbhN0MAioUcjVupLH7YWhw=; b=gak63KwKZK/CX2/gZCEjrJbBpHKURxFH12Kxa/HqbOEhQ+jmEffYxGrK4wcHI+ALqd bR2vsv1AONdB/xicf5sIwdkUnSOQo+m0WVQfYo2tjgYSXFycqpkFGx03RWMrhJGK5JBg q3Zta0RNrMeR84kbPjpSL2PczuuwkLSkAMHuzVC7/GSU3opDP0xXMMXx6Ne4iPHgfMDt w88W8o5lR0i/s+usRWnG2xKs6TcDc9uS2jNQAE1+UgjqZm7w3id2OQKVzvbAJiwlxr6z 9W2rrwGuLSSEBd97tf1xltvjHh69zM177/t0atfs6bUSfOh4RFciCVJJR7ggCf5ObgQc qoGQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s1-v6si5260291plr.109.2018.04.05.04.13.27; Thu, 05 Apr 2018 04:13:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751315AbeDELMQ (ORCPT + 99 others); Thu, 5 Apr 2018 07:12:16 -0400 Received: from mx2.suse.de ([195.135.220.15]:41700 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751038AbeDELMP (ORCPT ); Thu, 5 Apr 2018 07:12:15 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id ABF09AD3C; Thu, 5 Apr 2018 11:12:13 +0000 (UTC) Date: Thu, 5 Apr 2018 13:12:12 +0200 From: David Disseldorp To: Zhang Zhuoyu Cc: nab@linux-iscsi.org, linux-scsi@vger.kernel.org, target-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] target:separate tx/rx cmd_puds Message-ID: <20180405131212.3f26339d@suse.de> In-Reply-To: <1521625963-657195-1-git-send-email-zhangzhuoyu@cmss.chinamobile.com> References: <1521625963-657195-1-git-send-email-zhangzhuoyu@cmss.chinamobile.com> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.31; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, The commit summary has a typo (cmd_puds). That said, this change isn't iSCSI specific, so using "pdu" here doesn't make much sense IMO. On Wed, 21 Mar 2018 17:52:43 +0800, Zhang Zhuoyu wrote: > Separate tx/rx cmd_pdus in order to distinguish LUN read/write IOPS. > > Signed-off-by: Zhang Zhuoyu > --- > drivers/target/target_core_stat.c | 26 ++++++++++++++++++++++---- > drivers/target/target_core_transport.c | 11 ++++++++++- > include/target/target_core_base.h | 3 ++- > 3 files changed, 34 insertions(+), 6 deletions(-) > > diff --git a/drivers/target/target_core_stat.c b/drivers/target/target_core_stat.c > index f0db91e..9099494 100644 > --- a/drivers/target/target_core_stat.c > +++ b/drivers/target/target_core_stat.c > @@ -706,7 +722,8 @@ static ssize_t target_stat_tgt_port_hs_in_cmds_show(struct config_item *item, > CONFIGFS_ATTR_RO(target_stat_tgt_port_, indx); > CONFIGFS_ATTR_RO(target_stat_tgt_port_, name); > CONFIGFS_ATTR_RO(target_stat_tgt_port_, port_index); > -CONFIGFS_ATTR_RO(target_stat_tgt_port_, in_cmds); > +CONFIGFS_ATTR_RO(target_stat_tgt_port_, tx_cmds); > +CONFIGFS_ATTR_RO(target_stat_tgt_port_, rx_cmds); I don't think the in_cmds metric should be deleted here. It could be calculated on the fly via tx_cmds + rx_cmds + nodata_cmds. Cheers, David