![]() |
lvs-users
|
| To: | <lvs-users@xxxxxxxxxxxxxxxxxxxxxx> |
|---|---|
| Subject: | [TCPSP]Is here a race condition? |
| From: | "yangrunhua" <yangrunhua@xxxxxxxxxxxx> |
| Date: | Mon, 3 Nov 2003 21:11:21 +0800 |
>From tcpsp-0.0.3 tcp_conn_flush():
write_lock(&tcpsp_conn_lock);
list_for_each_safe (e, nxt, &tcpsp_conn_tab1[idx]) {
cp = list_entry(e, struct tcpsp_conn, f_list);
write_unlock(&tcpsp_conn_lock);
TCPSP_DBG(4, "del splicing connection\n");
//cp now maybe already destroyed on timer softirq of another CPU
//so &cp->timer maybe dangerous, am I right?
if (del_timer(&cp->timer))
tcpsp_conn_expire_now(cp);
write_lock(&tcpsp_conn_lock);
}
write_unlock(&tcpsp_conn_lock);
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Event handler with keepalived ?, Francois JEANMOUGIN |
|---|---|
| Next by Date: | having problems getting lvs-dr to work, Justin Albstmeijer |
| Previous by Thread: | Event handler with keepalived ?, Francois JEANMOUGIN |
| Next by Thread: | having problems getting lvs-dr to work, Justin Albstmeijer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |