lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1229813986.4560.193.camel@haakon2.linux-iscsi.org>
Date:	Sat, 20 Dec 2008 14:59:46 -0800
From:	"Nicholas A. Bellinger" <nab@...ux-iscsi.org>
To:	"Linux-iSCSI.org Target Dev" 
	<linux-iscsi-target-dev@...glegroups.com>
Cc:	LKML <linux-kernel@...r.kernel.org>,
	linux-scsi <linux-scsi@...r.kernel.org>
Subject: [PATCH 1/8] [Target_Core_Mod]: Add EXPORT_SYMBOL() to
	transport_release_cmd_to_pool()

>>From e55f26fb1dfd4e549208297d66735bcd80a4ffac Mon Sep 17 00:00:00 2001
From: Nicholas Bellinger <nab@...ux-iscsi.org>
Date: Sat, 20 Dec 2008 02:00:16 -0800
Subject: [PATCH 1/8] [Target_Core_Mod]: Add EXPORT_SYMBOL() to transport_release_cmd_to_pool()

This patch exports transport_release_cmd_to_pool() for transport core, which
is intended to be used by $FABRIC_MODs for release se_cmd_t, along with the
already exported transport_generic_free_cmd().

Signed-off-by: Nicholas A. Bellinger <nab@...ux-iscsi.org>
---
 drivers/lio-core/target_core_transport.c |    5 +++--
 drivers/lio-core/target_core_transport.h |    1 +
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/lio-core/target_core_transport.c b/drivers/lio-core/target_core_transport.c
index 9866584..ed042eb 100644
--- a/drivers/lio-core/target_core_transport.c
+++ b/drivers/lio-core/target_core_transport.c
@@ -214,7 +214,6 @@ struct kmem_cache *se_sess_cache = NULL;
 
 EXPORT_SYMBOL(se_global);
 extern int iscsi_release_sessions_for_tpg (iscsi_portal_group_t *, int);
-static void transport_release_cmd_to_pool (se_cmd_t *);
 static int transport_generic_write_pending (se_cmd_t *);
 static int transport_processing_thread (void *);
 
@@ -5930,7 +5929,7 @@ static int transport_generic_write_pending (se_cmd_t *cmd)
  *
  *
  */
-static void transport_release_cmd_to_pool (se_cmd_t *cmd)
+extern void transport_release_cmd_to_pool (se_cmd_t *cmd)
 {
 	if (cmd->se_cmd_flags & SCF_CMD_PASSTHROUGH) 
 		kfree(cmd->se_lun);
@@ -5943,6 +5942,8 @@ static void transport_release_cmd_to_pool (se_cmd_t *cmd)
 	return;
 }
 
+EXPORT_SYMBOL(transport_release_cmd_to_pool);
+
 /*	transport_generic_free_cmd():
  *
  *	Called from processing frontend to release storage engine resources
diff --git a/drivers/lio-core/target_core_transport.h b/drivers/lio-core/target_core_transport.h
index dce7bd6..9c989bd 100644
--- a/drivers/lio-core/target_core_transport.h
+++ b/drivers/lio-core/target_core_transport.h
@@ -182,6 +182,7 @@ extern int iscsi_send_check_condition_and_sense (se_cmd_t *, __u8, int);
 extern int core_tpg_persistent_reservation_check (se_cmd_t *);
 extern int core_tpg_persistent_reservation_release (se_cmd_t *);
 extern int core_tpg_persistent_reservation_reserve (se_cmd_t *);
+extern void transport_release_cmd_to_pool (se_cmd_t *);
 extern void transport_generic_free_cmd (se_cmd_t *, int, int, int);
 extern void transport_generic_wait_for_cmds (se_cmd_t *, int);
 extern int transport_generic_do_transform (struct se_cmd_s *, struct se_transform_info_s *);
-- 
1.5.4.1



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ