From patchwork Thu Jul 13 16:11:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khazhy Kumykov X-Patchwork-Id: 9839253 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 42D6C602A0 for ; Thu, 13 Jul 2017 16:12:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 32BC628633 for ; Thu, 13 Jul 2017 16:12:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 26DD52871D; Thu, 13 Jul 2017 16:12:24 +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=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MIME_HEADER_CTYPE_ONLY,RCVD_IN_DNSWL_HI, T_TVD_MIME_NO_HEADERS 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 A591428633 for ; Thu, 13 Jul 2017 16:12:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752695AbdGMQMW (ORCPT ); Thu, 13 Jul 2017 12:12:22 -0400 Received: from mail-pf0-f180.google.com ([209.85.192.180]:34946 "EHLO mail-pf0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752560AbdGMQLq (ORCPT ); Thu, 13 Jul 2017 12:11:46 -0400 Received: by mail-pf0-f180.google.com with SMTP id c73so31711691pfk.2 for ; Thu, 13 Jul 2017 09:11:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Vxe+5WW0DspnGKBNF781sBLrm+iyFGGRFQQj0h9MFdY=; b=s/I0l6MN+1LpP5EqCQdNOnKB1VjOhukWDraFvErudhKEUpYCri0NR7hNE6GMhQjDZo puuc3XcOQOaLv2bC/rQ/AO5yBmK90WwfER/w+jMIzVndqf9lqTvVEC4eyPkfE35S5S/c ol+UQSuIB20rYN9Zbjrgt7vIkB89yyx7N5QZN9FGJKex8k0D64Wwn7iGI228S2NsHphX CswBP2dJ6bG9pnt41FFINqgUT6CXFKWARSbOLgFr63LPncPAWYwTrfw7Y/w8CRoqBF8V xPQRv8sLzfuvILceE0/8ggIqkbuGL4Jtb5XdXIOtourOUVHW4YbmjcOpfqRbJKgr+rd9 paXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Vxe+5WW0DspnGKBNF781sBLrm+iyFGGRFQQj0h9MFdY=; b=o7Yk7b17CcT8MpUQjy8Q49nHLA9Lr+UanBHSK6R/5o4CxAoi0esrnq57oYJLILL1Gu LBCqd07w9xKYk4+cLOqAcAqDoMgbS41MGiXd0pIaMtXHlTHC/ge0ihraJ93HtwLvjmdZ 5RjTU5tLOmRPlMk3XPkEdmUSo+KQ2pYcTFKSsj/IKePDmCj0/a1bHIorI575tcVcT/Tg LP3fMVyHPZWSa4gU7uU75BiRRM8LdPFTKOt3/uOBlBrMPFfwnrs9xyAoVXSG24QASIhA XgxoZgVb4zFNQuEReYIBRN6hEK0a9mFXNdyDQaOOyZRG40ZikK2tUZR2ey5hxHcpGy8p N4IQ== X-Gm-Message-State: AIVw111/FgQTihIGbLJmnPJfZIJAoE6vgQFX3q8KmRWOVW3W+R7jJgYv 37eGvW3Z89rtX9nr9cWKyw== X-Received: by 10.84.225.4 with SMTP id t4mr11277135plj.274.1499962305454; Thu, 13 Jul 2017 09:11:45 -0700 (PDT) Received: from khazhy.svl.corp.google.com ([100.123.228.94]) by smtp.gmail.com with ESMTPSA id t70sm14244305pfk.111.2017.07.13.09.11.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 13 Jul 2017 09:11:44 -0700 (PDT) From: Khazhismel Kumykov To: lduncan@suse.com, cleech@redhat.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, open-iscsi@googlegroups.com, Khazhismel Kumykov Subject: [Patch v2 2/2] libiscsi: Remove iscsi_destroy_session Date: Thu, 13 Jul 2017 09:11:22 -0700 Message-Id: <20170713161122.89375-2-khazhy@google.com> X-Mailer: git-send-email 2.13.2.932.g7449e964c-goog In-Reply-To: <20170713161122.89375-1-khazhy@google.com> References: <20170713161122.89375-1-khazhy@google.com> Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP iscsi_session_teardown was the only user of this function. Function currently is just short for iscsi_remove_session + iscsi_free_session. Signed-off-by: Khazhismel Kumykov Acked-by: Chris Leech --- drivers/scsi/scsi_transport_iscsi.c | 16 ---------------- include/scsi/scsi_transport_iscsi.h | 1 - 2 files changed, 17 deletions(-) diff --git a/drivers/scsi/scsi_transport_iscsi.c b/drivers/scsi/scsi_transport_iscsi.c index a424eaeafeb0..924ac408d8a9 100644 --- a/drivers/scsi/scsi_transport_iscsi.c +++ b/drivers/scsi/scsi_transport_iscsi.c @@ -2210,22 +2210,6 @@ void iscsi_free_session(struct iscsi_cls_session *session) } EXPORT_SYMBOL_GPL(iscsi_free_session); -/** - * iscsi_destroy_session - destroy iscsi session - * @session: iscsi_session - * - * Can be called by a LLD or iscsi_transport. There must not be - * any running connections. - */ -int iscsi_destroy_session(struct iscsi_cls_session *session) -{ - iscsi_remove_session(session); - ISCSI_DBG_TRANS_SESSION(session, "Completing session destruction\n"); - iscsi_free_session(session); - return 0; -} -EXPORT_SYMBOL_GPL(iscsi_destroy_session); - /** * iscsi_create_conn - create iscsi class connection * @session: iscsi cls session diff --git a/include/scsi/scsi_transport_iscsi.h b/include/scsi/scsi_transport_iscsi.h index 6183d20a01fb..b266d2a3bcb1 100644 --- a/include/scsi/scsi_transport_iscsi.h +++ b/include/scsi/scsi_transport_iscsi.h @@ -434,7 +434,6 @@ extern struct iscsi_cls_session *iscsi_create_session(struct Scsi_Host *shost, unsigned int target_id); extern void iscsi_remove_session(struct iscsi_cls_session *session); extern void iscsi_free_session(struct iscsi_cls_session *session); -extern int iscsi_destroy_session(struct iscsi_cls_session *session); extern struct iscsi_cls_conn *iscsi_create_conn(struct iscsi_cls_session *sess, int dd_size, uint32_t cid); extern int iscsi_destroy_conn(struct iscsi_cls_conn *conn);