From patchwork Wed Oct 17 15:48:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Disseldorp X-Patchwork-Id: 10645767 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0A7CD3C13 for ; Wed, 17 Oct 2018 15:48:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EAB5926E76 for ; Wed, 17 Oct 2018 15:48:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DAAAD27C2D; Wed, 17 Oct 2018 15:48:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 815E327861 for ; Wed, 17 Oct 2018 15:48:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727186AbeJQXop (ORCPT ); Wed, 17 Oct 2018 19:44:45 -0400 Received: from mx2.suse.de ([195.135.220.15]:41964 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727521AbeJQXop (ORCPT ); Wed, 17 Oct 2018 19:44:45 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 2F353AFCC; Wed, 17 Oct 2018 15:48:26 +0000 (UTC) From: David Disseldorp To: target-devel@vger.kernel.org Cc: martin.petersen@oracle.com, linux-scsi@vger.kernel.org, David Disseldorp Subject: [RFC PATCH 3/3] target: remove cumulative session errors metric Date: Wed, 17 Oct 2018 17:48:20 +0200 Message-Id: <20181017154820.9722-4-ddiss@suse.de> X-Mailer: git-send-email 2.13.7 In-Reply-To: <20181017154820.9722-1-ddiss@suse.de> References: <20181017154820.9722-1-ddiss@suse.de> Sender: target-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: target-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The cumulative session errors metric matches cxn_timeout_errors, so drop the duplicate. Signed-off-by: David Disseldorp --- drivers/target/iscsi/iscsi_target_stat.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/drivers/target/iscsi/iscsi_target_stat.c b/drivers/target/iscsi/iscsi_target_stat.c index 645c26f888cf..94b6f5ad48a4 100644 --- a/drivers/target/iscsi/iscsi_target_stat.c +++ b/drivers/target/iscsi/iscsi_target_stat.c @@ -95,20 +95,6 @@ static ssize_t iscsi_stat_instance_sessions_show(struct config_item *item, iscsi_instance_tiqn(item)->tiqn_nsessions); } -static ssize_t iscsi_stat_instance_fail_sess_show(struct config_item *item, - char *page) -{ - struct iscsi_tiqn *tiqn = iscsi_instance_tiqn(item); - struct iscsi_sess_err_stats *sess_err = &tiqn->sess_err_stats; - u32 sess_err_count; - - spin_lock_bh(&sess_err->lock); - sess_err_count = sess_err->cxn_timeout_errors; - spin_unlock_bh(&sess_err->lock); - - return snprintf(page, PAGE_SIZE, "%u\n", sess_err_count); -} - static ssize_t iscsi_stat_instance_fail_type_show(struct config_item *item, char *page) { @@ -160,7 +146,6 @@ CONFIGFS_ATTR_RO(iscsi_stat_instance_, max_ver); CONFIGFS_ATTR_RO(iscsi_stat_instance_, portals); CONFIGFS_ATTR_RO(iscsi_stat_instance_, nodes); CONFIGFS_ATTR_RO(iscsi_stat_instance_, sessions); -CONFIGFS_ATTR_RO(iscsi_stat_instance_, fail_sess); CONFIGFS_ATTR_RO(iscsi_stat_instance_, fail_type); CONFIGFS_ATTR_RO(iscsi_stat_instance_, fail_rem_name); CONFIGFS_ATTR_RO(iscsi_stat_instance_, disc_time); @@ -175,7 +160,6 @@ static struct configfs_attribute *iscsi_stat_instance_attrs[] = { &iscsi_stat_instance_attr_portals, &iscsi_stat_instance_attr_nodes, &iscsi_stat_instance_attr_sessions, - &iscsi_stat_instance_attr_fail_sess, &iscsi_stat_instance_attr_fail_type, &iscsi_stat_instance_attr_fail_rem_name, &iscsi_stat_instance_attr_disc_time,