> -----Original Message-----
> From: David Disseldorp [mailto:dd...@suse.de]
> Sent: Friday, April 6, 2018 8:10 PM
> To: Zhang Zhuoyu <zhangzhu...@cmss.chinamobile.com>
> Cc: n...@linux-iscsi.org; linux-s...@vger.kernel.org; target-
> de...@vger.kernel.org; email@example.com
> 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?
Mmm... This patch is much better.
Looks good to me.
> ...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
> 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