diff options
author | Khazhismel Kumykov <khazhy@google.com> | 2017-07-13 09:11:22 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-10-02 22:23:21 -0400 |
commit | 1c048a250aae1aaab0ba9dbec908f0c6cdb8614f (patch) | |
tree | e5991fc1589a6cb3e06a63af095788ed701b327f /drivers/scsi/scsi_transport_iscsi.c | |
parent | 9e10b5121ad991ea6e84ca40b15a04cdc551bfe9 (diff) | |
download | linux-stable-1c048a250aae1aaab0ba9dbec908f0c6cdb8614f.tar.gz linux-stable-1c048a250aae1aaab0ba9dbec908f0c6cdb8614f.tar.bz2 linux-stable-1c048a250aae1aaab0ba9dbec908f0c6cdb8614f.zip |
scsi: libiscsi: Remove iscsi_destroy_session
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 <khazhy@google.com>
Acked-by: Chris Leech <cleech@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/scsi_transport_iscsi.c')
-rw-r--r-- | drivers/scsi/scsi_transport_iscsi.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/scsi/scsi_transport_iscsi.c b/drivers/scsi/scsi_transport_iscsi.c index 0190aeff5f7f..7404d26895f5 100644 --- a/drivers/scsi/scsi_transport_iscsi.c +++ b/drivers/scsi/scsi_transport_iscsi.c @@ -2211,22 +2211,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 * @dd_size: private driver data size |