Received: by 10.213.65.68 with SMTP id h4csp1205451imn; Sat, 7 Apr 2018 21:10:56 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+wiVvf2oXLkHCEeCSEeMbzN8Ss73XdljIHTNnBrOz193qky4ZuI9M+kBSCKbMd3Qgbjk9A X-Received: by 2002:a17:902:341:: with SMTP id 59-v6mr32516256pld.407.1523160656047; Sat, 07 Apr 2018 21:10:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523160655; cv=none; d=google.com; s=arc-20160816; b=WbMqsXIq7YhljAlR0YJyqqB9qT3RnUtdTLidDY4pG6Ja5EVq2FetplBgKzn1d5hLcT o0hZnav0wlMH5dOich7AAUAo+MtV5hz4Lq5r9Q91ShabZv0bG/wgPA2k0GBKSPf7ulmH z7YtaX22cpDSrfOuAlTq0uaoDWYu61/Uj5Xj6xoRdeerGOU54AVWX31+I+R6/cRJgKn+ /33Vtycil3iKlDw+/+JI3dPgcr1aDhxAEBy49+BbMHITVL8FPby/WC/5SVMKfVm11hE4 Q9onP3NpAJILxFXRDH+5Ta7RjgfjY/oZpdTDac5REhW2Bl/TYqQWAfHi+3h9iPmtbDN/ gVPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language:thread-index :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from:arc-authentication-results; bh=b/n5cF3oSmfg/NjjxV1dwcOV5P2q8F7MkT2SLH5FZ+g=; b=yNLHExsYT/36KXq3g3Ew1P7viZurQ+ED2HS5qZ2Qngicwc19ZF+SccXlzivGz0Xd1m kRkNYg5F6PswSBJmMxJg6UT7w0jVeWjyKqdHF++dw2oKKf/pERJt78hj4pLa0Tq7g+0e LCP5+E9ZK6ZFOkeoSDUGaInklTpZg+UauerPpX/HhUzCejXY7PalP1y1O2Y61vLlZaMz ijrv/vA+N9lWn1mfTS34SXddd2e/odT90qeRe5dVNF94QScy0Vfbr8ShWCVciqD0yi4A +fxkn93y7Rwi7WPZx7FHS5Wkjn5jVDCahBcYgTNOcfpDn1+UraXjxo55e+tcfAfwrsGt 959A== 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 t5si9168386pgo.96.2018.04.07.21.10.06; Sat, 07 Apr 2018 21:10:55 -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 S1751317AbeDHEGq (ORCPT + 99 others); Sun, 8 Apr 2018 00:06:46 -0400 Received: from cmccmta3.chinamobile.com ([221.176.66.81]:59905 "EHLO cmccmta3.chinamobile.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750760AbeDHEGo (ORCPT ); Sun, 8 Apr 2018 00:06:44 -0400 X-Greylist: delayed 552 seconds by postgrey-1.27 at vger.kernel.org; Sun, 08 Apr 2018 00:06:41 EDT Received: from spf.mail.chinamobile.com (unknown[172.16.121.7]) by rmmx-syy-dmz-app12-12012 (RichMail) with SMTP id 2eec5ac99320406-a67dd; Sun, 08 Apr 2018 11:57:20 +0800 (CST) X-RM-TRANSID: 2eec5ac99320406-a67dd X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from ZhuoyuZhangPC (unknown[112.25.154.148]) by rmsmtp-syy-appsvr04-12004 (RichMail) with SMTP id 2ee45ac9931ff04-55a8a; Sun, 08 Apr 2018 11:57:20 +0800 (CST) X-RM-TRANSID: 2ee45ac9931ff04-55a8a From: "Zhang Zhuoyu" To: "'David Disseldorp'" Cc: , , , References: <1521625963-657195-1-git-send-email-zhangzhuoyu@cmss.chinamobile.com> <20180405131212.3f26339d@suse.de> <20180406140934.2dfafd45@suse.de> In-Reply-To: <20180406140934.2dfafd45@suse.de> Subject: RE: [PATCH 1/1] target:separate tx/rx cmd_puds Date: Sun, 8 Apr 2018 11:57:18 +0800 Message-ID: <000001d3ceed$b0d9c870$128d5950$@cmss.chinamobile.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQJQLVfv6VWhVBGUZpT/0j4dCNIE4wKSJYTnAkM35SKi1tODUA== Content-Language: en-us Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: David Disseldorp [mailto:ddiss@suse.de] > Sent: Friday, April 6, 2018 8:10 PM > 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 > > On Thu, 5 Apr 2018 13:12:12 +0200, David Disseldorp wrote: > > > > -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. > > @Zhang Zhuoyu: How about something like the following? > https://git.samba.org/?p=ddiss/linux.git;a=commitdiff;h=73723ccf433424721 > 830797d70cfb88d4596e0fc > Mmm... This patch is much better. Looks good to me. Zhuoyu > ...this keeps the in_cmds metric, and renames tx/rx_cmds read/write_cmds > respectively. read/write_cmds is still a bit ambiguous, as it refers to the > command data direction rather than SCSI READ/WRITE CDBs, but IMO it's > clearer, and more consistent with the read/write_mbytes metrics. > > Cheers, David