[stgt] [PATCH 03/12] Export sig_fd variable to be used for thread per target

Chandra Seetharaman sekharan at us.ibm.com
Mon Sep 27 23:06:49 CEST 2010


export sig_fd in bs.

iSCSI needs to know if the system supports signalfd or not.

Signed-off-by: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
Signed-off-by: Chandra Seetharaman <sekharan at us.ibm.com>

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

Index: tgt-102236c/usr/tgtd.h
===================================================================
--- tgt-102236c.orig/usr/tgtd.h
+++ tgt-102236c/usr/tgtd.h
@@ -335,6 +335,8 @@ struct event_data {
 	struct list_head e_list;
 };
 
+extern int sig_fd;
+
 int do_tgt_event_add(int efd, struct list_head *list, int fd, int events,
 		     event_handler_t handler, void *data);
 void do_tgt_event_del(int efd, struct list_head *list, int fd);
Index: tgt-102236c/usr/bs.c
===================================================================
--- tgt-102236c.orig/usr/bs.c
+++ tgt-102236c/usr/bs.c
@@ -43,7 +43,7 @@ static LIST_HEAD(bst_list);
 static LIST_HEAD(finished_list);
 static pthread_mutex_t finished_lock;
 
-static int sig_fd = -1;
+int sig_fd = -1;
 
 static int command_fd[2];
 static int done_fd[2];
--
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