[stgt] [PATCH 05/12] Export target_lookup function

Chandra Seetharaman sekharan at us.ibm.com
Mon Sep 27 07:20:52 CEST 2010


Export the function target_lookup(). Needed for iSCSI thread per
target feature.

Signed-off-by: Chandra Seetharaman <sekharan at us.ibm.com>

---
 usr/target.c |    2 +-
 usr/target.h |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

Index: tgt-1.0.8.4/usr/target.c
===================================================================
--- tgt-1.0.8.4.orig/usr/target.c
+++ tgt-1.0.8.4/usr/target.c
@@ -63,7 +63,7 @@ static struct device_type_template *devi
 
 static LIST_HEAD(target_list);
 
-static struct target *target_lookup(int tid)
+struct target *target_lookup(int tid)
 {
 	struct target *target;
 	list_for_each_entry(target, &target_list, target_siblings)
Index: tgt-1.0.8.4/usr/target.h
===================================================================
--- tgt-1.0.8.4.orig/usr/target.h
+++ tgt-1.0.8.4/usr/target.h
@@ -88,4 +88,5 @@ static inline int queue_active(const str
 QUEUE_FNS(BLOCKED, blocked)
 QUEUE_FNS(DELETED, deleted)
 
+extern struct target *target_lookup(int tid);
 #endif
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list