Lines Matching refs:lc
817 struct ocfs2_live_connection *lc = conn->cc_private;
818 complete(&lc->oc_sync_wait);
825 struct ocfs2_live_connection *lc = conn->cc_private;
834 wait_for_completion(&lc->oc_sync_wait);
849 struct ocfs2_live_connection *lc = conn->cc_private;
860 wait_for_completion(&lc->oc_sync_wait);
876 struct ocfs2_live_connection *lc = conn->cc_private;
878 &lc->oc_version_lksb, VERSION_LOCK);
883 struct ocfs2_live_connection *lc = conn->cc_private;
884 return sync_unlock(conn, &lc->oc_version_lksb, VERSION_LOCK);
901 struct ocfs2_live_connection *lc = conn->cc_private;
909 lc->oc_version_lksb.sb_lvbptr = lc->oc_lvb;
915 version_to_lvb(&running_proto, lc->oc_lvb);
921 lvb_to_version(lc->oc_lvb, &pv);
954 struct ocfs2_live_connection *lc = conn->cc_private;
959 atomic_set(&lc->oc_this_node, slots[i].nodeid);
963 lc->oc_our_slot = our_slot;
964 wake_up(&lc->oc_wait);
986 struct ocfs2_live_connection *lc;
991 lc = kzalloc(sizeof(struct ocfs2_live_connection), GFP_KERNEL);
992 if (!lc)
995 init_waitqueue_head(&lc->oc_wait);
996 init_completion(&lc->oc_sync_wait);
997 atomic_set(&lc->oc_this_node, 0);
998 conn->cc_private = lc;
999 lc->oc_type = NO_CONTROLD;
1015 lc->oc_type = WITH_CONTROLD;
1025 rc = ocfs2_live_connection_attach(conn, lc);
1029 if (lc->oc_type == NO_CONTROLD) {
1037 wait_event(lc->oc_wait, (atomic_read(&lc->oc_this_node) > 0));
1051 ocfs2_live_connection_drop(lc);
1052 lc = NULL;
1057 kfree(lc);
1066 struct ocfs2_live_connection *lc = conn->cc_private;
1068 if (lc->oc_type == WITH_CONTROLD)
1070 else if (lc->oc_type == NO_CONTROLD)
1071 rc = atomic_read(&lc->oc_this_node);