Lines Matching refs:toss
508 * Searching for an rsb means looking through both the normal list and toss
509 * list. When found on the toss list the rsb is moved to the normal list with
513 * rsb's on the toss list are not being used locally, and are not refcounted.
515 * The toss list rsb's were either
517 * moved to toss list when last refcount dropped)
518 * - created and put on toss list as a directory record for a lookup
523 * So, if the given rsb is on the toss list, it is moved to the keep list
528 * toss list.
530 * rsb's on both keep and toss lists are used for doing a name to master
533 * only exist for name/master lookups are on the toss list.
535 * rsb's on the toss list who's dir_nodeid is not local can have stale
576 * from our toss list. (They sent a request instead of lookup
577 * because they are using an rsb from their toss list.)
608 error = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].toss, name, len, &r);
615 * is using this rsb because it's on the toss list, so we can
622 log_debug(ls, "find_rsb toss from_other %d master %d dir %d %s",
631 log_error(ls, "find_rsb toss from_dir %d master %d",
648 rb_erase(&r->res_hashnode, &ls->ls_rsbtbl[b].toss);
752 error = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].toss, name, len, &r);
758 * it's on the toss list, so we can look at or update
765 log_error(ls, "find_rsb toss from_nodeid %d master %d dir %d",
776 log_error(ls, "find_rsb toss our %d master %d dir %d",
783 rb_erase(&r->res_hashnode, &ls->ls_rsbtbl[b].toss);
958 error = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].toss, name, len, &r);
962 /* because the rsb is inactive (on toss list), it's not refcounted
985 /* I don't think we should ever find it on toss list. */
986 log_error(ls, "dlm_master_lookup fix_master on toss");
1040 /* the rsb was inactive (on toss list) */
1066 error = rsb_insert(r, &ls->ls_rsbtbl[b].toss);
1114 error = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].toss, name, len, &r);
1131 rsb_insert(r, &ls->ls_rsbtbl[r->res_bucket].toss);
1669 for (n = rb_first(&ls->ls_rsbtbl[b].toss); n; n = next) {
1714 rb_erase(&r->res_hashnode, &ls->ls_rsbtbl[b].toss);
1727 * so there is a very small gap between removing them from the toss
1732 * From the time the rsb is removed from toss until just after
1743 rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].toss, name, len, &r);
1746 log_debug(ls, "remove_name not toss %s", name);
1781 rb_erase(&r->res_hashnode, &ls->ls_rsbtbl[b].toss);
4053 rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].toss, name, len, &r);
4056 log_error(ls, "repeat_remove on toss %s", name);
4423 /* Look for name on rsbtbl.toss, if it's there, kill it.
4440 rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].toss, name, len, &r);
4468 log_error(ls, "receive_remove toss from %d master %d",
4476 rb_erase(&r->res_hashnode, &ls->ls_rsbtbl[b].toss);