search for: nn_lock

Displaying 6 results from an estimated 6 matches for "nn_lock".

Did you mean: mn_lock
2008 Feb 04
0
[PATCH] o2net: Reconnect after idle time out.
.../* keep track of the nn's sc ref for the caller */ @@ -1193,6 +1188,7 @@ static int o2net_check_handshake(struct * shut down already */ if (nn->nn_sc == sc) { o2net_sc_reset_idle_timer(sc); + nn->nn_timeout = 0; o2net_set_nn_state(nn, sc, 1, 0); } spin_unlock(&nn->nn_lock); @@ -1391,6 +1387,7 @@ static void o2net_sc_send_keep_req(struc static void o2net_idle_timer(unsigned long data) { struct o2net_sock_container *sc = (struct o2net_sock_container *)data; + struct o2net_node *nn = o2net_nn_from_num(sc->sc_node->nd_num); struct timeval now; do_gettime...
2009 Nov 20
3
o2net patch that avoids socket disconnect/reconnect
This fix modifies o2net layer behavior which seems to trigger some DLM race issues during umount/evictions that needs to be fixed as well. I am working on the dlm issues but meanwhile please review this patch. Thanks, --Srini
2008 Feb 13
2
[PATCH] o2net: Reconnect after idle time out.V2
...f the nn's sc ref for the caller */ @@ -1193,6 +1198,7 @@ static int o2net_check_handshake(struct * shut down already */ if (nn->nn_sc == sc) { o2net_sc_reset_idle_timer(sc); + atomic_set(&nn->nn_timeout, 0); o2net_set_nn_state(nn, sc, 1, 0); } spin_unlock(&nn->nn_lock); @@ -1391,6 +1397,7 @@ static void o2net_sc_send_keep_req(struc static void o2net_idle_timer(unsigned long data) { struct o2net_sock_container *sc = (struct o2net_sock_container *)data; + struct o2net_node *nn = o2net_nn_from_num(sc->sc_node->nd_num); struct timeval now; do_gettime...
2006 Jan 09
0
[PATCH 01/11] ocfs2: event-driven quorum
...NN_UP_CB, node, node_num); + /* this is a bit of a hack. we only try reconnecting * when heartbeating starts until we get a connection. * if that connection then dies we don't try reconnecting. @@ -1424,13 +1427,6 @@ static void o2net_connect_expired(void * spin_unlock(&nn->nn_lock); } -static void o2net_still_up(void *arg) -{ - struct o2net_node *nn = arg; - - o2quo_hb_still_up(o2net_num_from_nn(nn)); -} - /* ------------------------------------------------------------ */ void o2net_disconnect_node(struct o2nm_node *node) @@ -1445,7 +1441,6 @@ void o2net_disconnect_no...
2007 May 17
1
[PATCH] ocfs: use list_for_each_entry where benefical
...c 2007-05-17 15:00:14.000000000 +0200 @@ -261,14 +261,12 @@ out: static void o2net_complete_nodes_nsw(struct o2net_node *nn) { - struct list_head *iter, *tmp; + struct o2net_status_wait *nsw, *tmp; unsigned int num_kills = 0; - struct o2net_status_wait *nsw; assert_spin_locked(&nn->nn_lock); - list_for_each_safe(iter, tmp, &nn->nn_status_list) { - nsw = list_entry(iter, struct o2net_status_wait, ns_node_item); + list_for_each_entry_safe(nsw, tmp, &nn->nn_status_list, ns_node_item) { o2net_complete_nsw_locked(nn, nsw, O2NET_ERR_DIED, 0); num_kills++; } @@ -764...
2008 Apr 02
10
[PATCH 0/62] Ocfs2 updates for 2.6.26-rc1
The following series of patches comprises the bulk of our outstanding changes for Ocfs2. Aside from the usual set of cleanups and fixes that were inappropriate for 2.6.25, there are a few highlights: The '/sys/o2cb' directory has been moved to '/sys/fs/o2cb'. The new location meshes better with modern sysfs layout. A symbolic link has been placed in the old location so as to