[stgt] [PATCH] Remove stale isns_timeout_fn()
Chandra Seetharaman
sekharan at us.ibm.com
Tue Aug 3 20:15:02 CEST 2010
remove stale timout function, whose purpose is not needed anymore,
with SCN being used.
Signed-Off-By: Chandra Seetharaman <sekharan at us.ibm.com>
---
usr/iscsi/isns.c | 15 ---------------
1 file changed, 15 deletions(-)
Index: tgt-469b574/usr/iscsi/isns.c
===================================================================
--- tgt-469b574.orig/usr/iscsi/isns.c
+++ tgt-469b574/usr/iscsi/isns.c
@@ -59,15 +59,12 @@ struct isns_initiator {
struct list_head ilist;
};
-struct tgt_work timeout_work;
-
static LIST_HEAD(qry_list);
static uint16_t scn_listen_port;
static int use_isns, use_isns_ac, isns_fd, scn_listen_fd, scn_fd;
static struct isns_io isns_rx, scn_rx;
static char *rxbuf;
static uint16_t transaction;
-static uint32_t isns_timeout = 30; /* seconds */
static char eid[ISCSI_NAME_LEN];
static uint8_t ip[16]; /* IET supoprts only one portal */
static struct sockaddr_storage ss;
@@ -904,14 +901,6 @@ out:
return err;
}
-static void isns_timeout_fn(void *data)
-{
- struct tgt_work *w = data;
-
- isns_attr_query(NULL);
- add_work(w, isns_timeout);
-}
-
int isns_init(void)
{
int err;
@@ -944,10 +933,6 @@ int isns_init(void)
use_isns = 1;
- timeout_work.func = isns_timeout_fn;
- timeout_work.data = &timeout_work;
- add_work(&timeout_work, isns_timeout);
-
return 0;
}
--
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