Lines Matching refs:qr

975 			     struct dlm_query_region *qr,  in dlm_match_regions()  argument
978 char *remote = qr->qr_regions; in dlm_match_regions()
984 if (qr->qr_numregions) { in dlm_match_regions()
987 qr->qr_domain, qr->qr_node, dlm->node_num); in dlm_match_regions()
993 if (o2hb_global_heartbeat_active() && !qr->qr_numregions) { in dlm_match_regions()
996 qr->qr_domain, dlm->node_num, qr->qr_node); in dlm_match_regions()
1002 for (i = 0; i < qr->qr_numregions; ++i) { in dlm_match_regions()
1015 for (j = 0; j <= qr->qr_numregions; ++j) { in dlm_match_regions()
1026 qr->qr_domain, O2HB_MAX_REGION_NAME_LEN, l, in dlm_match_regions()
1027 dlm->node_num, qr->qr_node); in dlm_match_regions()
1035 for (i = 0; i < qr->qr_numregions; ++i) { in dlm_match_regions()
1049 qr->qr_domain, O2HB_MAX_REGION_NAME_LEN, r, in dlm_match_regions()
1050 qr->qr_node, dlm->node_num); in dlm_match_regions()
1062 struct dlm_query_region *qr = NULL; in dlm_send_regions() local
1069 qr = kzalloc(sizeof(struct dlm_query_region), GFP_KERNEL); in dlm_send_regions()
1070 if (!qr) { in dlm_send_regions()
1076 qr->qr_node = dlm->node_num; in dlm_send_regions()
1077 qr->qr_namelen = strlen(dlm->name); in dlm_send_regions()
1078 memcpy(qr->qr_domain, dlm->name, qr->qr_namelen); in dlm_send_regions()
1081 qr->qr_numregions = o2hb_get_all_regions(qr->qr_regions, in dlm_send_regions()
1084 p = qr->qr_regions; in dlm_send_regions()
1085 for (i = 0; i < qr->qr_numregions; ++i, p += O2HB_MAX_REGION_NAME_LEN) in dlm_send_regions()
1096 ret = o2net_send_message(DLM_QUERY_REGION, DLM_MOD_KEY, qr, in dlm_send_regions()
1109 kfree(qr); in dlm_send_regions()
1116 struct dlm_query_region *qr; in dlm_query_region_handler() local
1121 qr = (struct dlm_query_region *) msg->buf; in dlm_query_region_handler()
1123 mlog(0, "Node %u queries hb regions on domain %s\n", qr->qr_node, in dlm_query_region_handler()
1124 qr->qr_domain); in dlm_query_region_handler()
1127 local = kmalloc(sizeof(qr->qr_regions), GFP_KERNEL); in dlm_query_region_handler()
1134 dlm = __dlm_lookup_domain_full(qr->qr_domain, qr->qr_namelen); in dlm_query_region_handler()
1137 "before join domain\n", qr->qr_node, qr->qr_domain); in dlm_query_region_handler()
1142 if (dlm->joining_node != qr->qr_node) { in dlm_query_region_handler()
1144 "but joining node is %d\n", qr->qr_node, qr->qr_domain, in dlm_query_region_handler()
1153 "but active dlm protocol is %d.%d\n", qr->qr_node, in dlm_query_region_handler()
1154 qr->qr_domain, dlm->dlm_locking_proto.pv_major, in dlm_query_region_handler()
1159 status = dlm_match_regions(dlm, qr, local, sizeof(qr->qr_regions)); in dlm_query_region_handler()