• Home
  • Raw
  • Download

Lines Matching refs:status

579 	int status;  in dlm_send_one_domain_exit()  local
588 status = o2net_send_message(msg_type, dlm->key, &leave_msg, in dlm_send_one_domain_exit()
590 if (status < 0) in dlm_send_one_domain_exit()
592 "to node %u on domain %s\n", status, msg_type, node, in dlm_send_one_domain_exit()
595 return status; in dlm_send_one_domain_exit()
629 int node, clear_node, status; in dlm_leave_domain() local
651 status = dlm_send_one_domain_exit(dlm, DLM_EXIT_DOMAIN_MSG, in dlm_leave_domain()
653 if (status < 0 && in dlm_leave_domain()
654 status != -ENOPROTOOPT && in dlm_leave_domain()
655 status != -ENOTCONN) { in dlm_leave_domain()
657 "to node %d\n", status, node); in dlm_leave_domain()
965 int status = 0; in dlm_match_regions() local
972 status = -EINVAL; in dlm_match_regions()
981 status = -EINVAL; in dlm_match_regions()
1007 status = -EINVAL; in dlm_match_regions()
1030 status = -EINVAL; in dlm_match_regions()
1041 return status; in dlm_match_regions()
1047 int status, ret = 0, i; in dlm_send_regions() local
1082 i, &status); in dlm_send_regions()
1084 ret = status; in dlm_send_regions()
1103 int status = 0; in dlm_query_region_handler() local
1115 status = -EINVAL; in dlm_query_region_handler()
1143 status = dlm_match_regions(dlm, qr, local, sizeof(qr->qr_regions)); in dlm_query_region_handler()
1153 return status; in dlm_query_region_handler()
1161 int status = 0; in dlm_match_nodes() local
1168 for (i = 0; i < O2NM_MAX_NODES && !status; ++i) { in dlm_match_nodes()
1182 status = -EINVAL; in dlm_match_nodes()
1184 if (!status && in dlm_match_nodes()
1188 status = -EINVAL; in dlm_match_nodes()
1190 if (status) { in dlm_match_nodes()
1213 return status; in dlm_match_nodes()
1220 int ret = 0, status, count, i; in dlm_send_nodeinfo() local
1260 i, &status); in dlm_send_nodeinfo()
1262 ret = status; in dlm_send_nodeinfo()
1279 int locked = 0, status = -EINVAL; in dlm_query_nodeinfo_handler() local
1313 status = dlm_match_nodes(dlm, qn); in dlm_query_nodeinfo_handler()
1320 return status; in dlm_query_nodeinfo_handler()
1355 int status; in dlm_send_one_join_cancel() local
1363 status = o2net_send_message(DLM_CANCEL_JOIN_MSG, DLM_MOD_KEY, in dlm_send_one_join_cancel()
1366 if (status < 0) { in dlm_send_one_join_cancel()
1368 "node %u\n", status, DLM_CANCEL_JOIN_MSG, DLM_MOD_KEY, in dlm_send_one_join_cancel()
1374 return status; in dlm_send_one_join_cancel()
1382 int status, tmpstat; in dlm_send_join_cancels() local
1393 status = 0; in dlm_send_join_cancels()
1404 if (!status) in dlm_send_join_cancels()
1405 status = tmpstat; in dlm_send_join_cancels()
1409 if (status) in dlm_send_join_cancels()
1410 mlog_errno(status); in dlm_send_join_cancels()
1411 return status; in dlm_send_join_cancels()
1418 int status; in dlm_request_join() local
1435 status = o2net_send_message(DLM_QUERY_JOIN_MSG, DLM_MOD_KEY, &join_msg, in dlm_request_join()
1437 if (status < 0 && status != -ENOPROTOOPT) { in dlm_request_join()
1439 "node %u\n", status, DLM_QUERY_JOIN_MSG, DLM_MOD_KEY, in dlm_request_join()
1449 if (status == -ENOPROTOOPT) { in dlm_request_join()
1450 status = 0; in dlm_request_join()
1469 status = -EPROTO; in dlm_request_join()
1485 status = -EINVAL; in dlm_request_join()
1494 mlog(0, "status %d, node %d response is %d\n", status, node, in dlm_request_join()
1498 return status; in dlm_request_join()
1504 int status; in dlm_send_one_join_assert() local
1515 status = o2net_send_message(DLM_ASSERT_JOINED_MSG, DLM_MOD_KEY, in dlm_send_one_join_assert()
1518 if (status < 0) in dlm_send_one_join_assert()
1520 "node %u\n", status, DLM_ASSERT_JOINED_MSG, DLM_MOD_KEY, in dlm_send_one_join_assert()
1523 status = ret; in dlm_send_one_join_assert()
1525 return status; in dlm_send_one_join_assert()
1531 int status, node, live; in dlm_send_join_asserts() local
1533 status = 0; in dlm_send_join_asserts()
1544 status = dlm_send_one_join_assert(dlm, node); in dlm_send_join_asserts()
1550 if (status) { in dlm_send_join_asserts()
1552 "join on node %d\n", status, node); in dlm_send_join_asserts()
1558 } while (status && live); in dlm_send_join_asserts()
1593 int status = 0, tmpstat, node; in dlm_try_to_join_domain() local
1601 status = -ENOMEM; in dlm_try_to_join_domain()
1602 mlog_errno(status); in dlm_try_to_join_domain()
1624 status = dlm_request_join(dlm, node, &response); in dlm_try_to_join_domain()
1625 if (status < 0) { in dlm_try_to_join_domain()
1626 mlog_errno(status); in dlm_try_to_join_domain()
1636 status = -EAGAIN; in dlm_try_to_join_domain()
1656 status = dlm_send_nodeinfo(dlm, ctxt->yes_resp_map); in dlm_try_to_join_domain()
1657 if (status) { in dlm_try_to_join_domain()
1658 mlog_errno(status); in dlm_try_to_join_domain()
1661 status = dlm_send_regions(dlm, ctxt->yes_resp_map); in dlm_try_to_join_domain()
1662 if (status) { in dlm_try_to_join_domain()
1663 mlog_errno(status); in dlm_try_to_join_domain()
1682 if (!status) { in dlm_try_to_join_domain()
1690 if (status < 0) { in dlm_try_to_join_domain()
1700 mlog(0, "returning %d\n", status); in dlm_try_to_join_domain()
1701 return status; in dlm_try_to_join_domain()
1713 int status; in dlm_register_domain_handlers() local
1722 status = o2hb_register_callback(dlm->name, &dlm->dlm_hb_down); in dlm_register_domain_handlers()
1723 if (status) in dlm_register_domain_handlers()
1726 status = o2hb_register_callback(dlm->name, &dlm->dlm_hb_up); in dlm_register_domain_handlers()
1727 if (status) in dlm_register_domain_handlers()
1730 status = o2net_register_handler(DLM_MASTER_REQUEST_MSG, dlm->key, in dlm_register_domain_handlers()
1734 if (status) in dlm_register_domain_handlers()
1737 status = o2net_register_handler(DLM_ASSERT_MASTER_MSG, dlm->key, in dlm_register_domain_handlers()
1742 if (status) in dlm_register_domain_handlers()
1745 status = o2net_register_handler(DLM_CREATE_LOCK_MSG, dlm->key, in dlm_register_domain_handlers()
1749 if (status) in dlm_register_domain_handlers()
1752 status = o2net_register_handler(DLM_CONVERT_LOCK_MSG, dlm->key, in dlm_register_domain_handlers()
1756 if (status) in dlm_register_domain_handlers()
1759 status = o2net_register_handler(DLM_UNLOCK_LOCK_MSG, dlm->key, in dlm_register_domain_handlers()
1763 if (status) in dlm_register_domain_handlers()
1766 status = o2net_register_handler(DLM_PROXY_AST_MSG, dlm->key, in dlm_register_domain_handlers()
1770 if (status) in dlm_register_domain_handlers()
1773 status = o2net_register_handler(DLM_EXIT_DOMAIN_MSG, dlm->key, in dlm_register_domain_handlers()
1777 if (status) in dlm_register_domain_handlers()
1780 status = o2net_register_handler(DLM_DEREF_LOCKRES_MSG, dlm->key, in dlm_register_domain_handlers()
1784 if (status) in dlm_register_domain_handlers()
1787 status = o2net_register_handler(DLM_MIGRATE_REQUEST_MSG, dlm->key, in dlm_register_domain_handlers()
1791 if (status) in dlm_register_domain_handlers()
1794 status = o2net_register_handler(DLM_MIG_LOCKRES_MSG, dlm->key, in dlm_register_domain_handlers()
1798 if (status) in dlm_register_domain_handlers()
1801 status = o2net_register_handler(DLM_MASTER_REQUERY_MSG, dlm->key, in dlm_register_domain_handlers()
1805 if (status) in dlm_register_domain_handlers()
1808 status = o2net_register_handler(DLM_LOCK_REQUEST_MSG, dlm->key, in dlm_register_domain_handlers()
1812 if (status) in dlm_register_domain_handlers()
1815 status = o2net_register_handler(DLM_RECO_DATA_DONE_MSG, dlm->key, in dlm_register_domain_handlers()
1819 if (status) in dlm_register_domain_handlers()
1822 status = o2net_register_handler(DLM_BEGIN_RECO_MSG, dlm->key, in dlm_register_domain_handlers()
1826 if (status) in dlm_register_domain_handlers()
1829 status = o2net_register_handler(DLM_FINALIZE_RECO_MSG, dlm->key, in dlm_register_domain_handlers()
1833 if (status) in dlm_register_domain_handlers()
1836 status = o2net_register_handler(DLM_BEGIN_EXIT_DOMAIN_MSG, dlm->key, in dlm_register_domain_handlers()
1840 if (status) in dlm_register_domain_handlers()
1843 status = o2net_register_handler(DLM_DEREF_LOCKRES_DONE, dlm->key, in dlm_register_domain_handlers()
1848 if (status) in dlm_register_domain_handlers()
1851 return status; in dlm_register_domain_handlers()
1856 int status; in dlm_join_domain() local
1865 status = dlm_register_domain_handlers(dlm); in dlm_join_domain()
1866 if (status) { in dlm_join_domain()
1867 mlog_errno(status); in dlm_join_domain()
1871 status = dlm_launch_thread(dlm); in dlm_join_domain()
1872 if (status < 0) { in dlm_join_domain()
1873 mlog_errno(status); in dlm_join_domain()
1877 status = dlm_launch_recovery_thread(dlm); in dlm_join_domain()
1878 if (status < 0) { in dlm_join_domain()
1879 mlog_errno(status); in dlm_join_domain()
1888 status = -ENOMEM; in dlm_join_domain()
1889 mlog_errno(status); in dlm_join_domain()
1894 status = dlm_try_to_join_domain(dlm); in dlm_join_domain()
1900 if (status == -EAGAIN) { in dlm_join_domain()
1902 status = -ERESTARTSYS; in dlm_join_domain()
1907 status = -ERESTARTSYS; in dlm_join_domain()
1927 } while (status == -EAGAIN); in dlm_join_domain()
1929 if (status < 0) { in dlm_join_domain()
1930 mlog_errno(status); in dlm_join_domain()
1934 status = 0; in dlm_join_domain()
1938 if (status) { in dlm_join_domain()
1945 return status; in dlm_join_domain()
2219 int status = 0; in dlm_register_net_handlers() local
2221 status = o2net_register_handler(DLM_QUERY_JOIN_MSG, DLM_MOD_KEY, in dlm_register_net_handlers()
2225 if (status) in dlm_register_net_handlers()
2228 status = o2net_register_handler(DLM_ASSERT_JOINED_MSG, DLM_MOD_KEY, in dlm_register_net_handlers()
2232 if (status) in dlm_register_net_handlers()
2235 status = o2net_register_handler(DLM_CANCEL_JOIN_MSG, DLM_MOD_KEY, in dlm_register_net_handlers()
2239 if (status) in dlm_register_net_handlers()
2242 status = o2net_register_handler(DLM_QUERY_REGION, DLM_MOD_KEY, in dlm_register_net_handlers()
2247 if (status) in dlm_register_net_handlers()
2250 status = o2net_register_handler(DLM_QUERY_NODEINFO, DLM_MOD_KEY, in dlm_register_net_handlers()
2255 if (status < 0) in dlm_register_net_handlers()
2258 return status; in dlm_register_net_handlers()
2315 int status; in dlm_init() local
2317 status = dlm_init_mle_cache(); in dlm_init()
2318 if (status) { in dlm_init()
2323 status = dlm_init_master_caches(); in dlm_init()
2324 if (status) { in dlm_init()
2330 status = dlm_init_lock_cache(); in dlm_init()
2331 if (status) { in dlm_init()
2336 status = dlm_register_net_handlers(); in dlm_init()
2337 if (status) { in dlm_init()