• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/db-4.7.25.NC/lock/

Lines Matching refs:region

120 	DB_LOCKREGION *region;
146 region = lt->reginfo.primary;
149 if (region->need_dd == 0 &&
150 (!timespecisset(&region->next_timeout) ||
151 !__lock_expired(env, &now, &region->next_timeout))) {
154 if (region->need_dd == 0)
158 region->need_dd = 0;
163 lock_max = region->stat.st_cur_maxid;
191 * We need the cur_maxid from the txn region as well. In order
193 * regions, we simply unlock the lock region and then lock the
194 * txn region. This introduces a small window during which the
323 region->need_dd = 1;
385 DB_LOCKREGION *region;
396 region = lt->reginfo.primary;
408 LOCK_SYSTEM_LOCK(lt, region);
410 skip: LOCK_DD(env, region);
411 op = SH_TAILQ_FIRST(&region->dd_objs, __db_lockobj);
415 UNLOCK_DD(env, region);
416 OBJECT_LOCK_NDX(lt, region, indx);
418 OBJECT_UNLOCK(lt, region, indx);
441 LOCK_DD(env, region);
443 OBJECT_UNLOCK(lt, region, indx);
445 UNLOCK_DD(env, region);
446 LOCK_SYSTEM_UNLOCK(lt, region);
451 * Allocate after locking the region
454 LOCK_LOCKERS(env, region);
455 count = region->stat.st_nlockers;
457 UNLOCK_LOCKERS(env, region);
470 UNLOCK_LOCKERS(env, region);
476 UNLOCK_LOCKERS(env, region);
483 UNLOCK_LOCKERS(env, region);
493 SH_TAILQ_FOREACH(lip, &region->lockers, ulinks, __db_locker) {
529 LOCK_DD(env, region);
530 op = SH_TAILQ_FIRST(&region->dd_objs, __db_lockobj);
534 UNLOCK_DD(env, region);
536 OBJECT_LOCK_NDX(lt, region, indx);
538 OBJECT_UNLOCK(lt, region, indx);
655 LOCK_DD(env, region);
657 OBJECT_UNLOCK(lt, region, indx);
659 UNLOCK_DD(env, region);
694 OBJECT_LOCK_NDX(lt, region, ndx);
698 OBJECT_UNLOCK(lt, region, ndx);
707 OBJECT_UNLOCK(lt, region, ndx);
717 OBJECT_LOCK_NDX(lt, region, ndx);
720 OBJECT_UNLOCK(lt, region, ndx);
734 OBJECT_UNLOCK(lt, region, ndx);
739 UNLOCK_LOCKERS(env, region);
740 LOCK_SYSTEM_UNLOCK(lt, region);
751 done: if (timespecisset(&region->next_timeout))
752 region->next_timeout = min_timeout;
831 DB_LOCKREGION *region;
838 region = lt->reginfo.primary;
842 LOCK_SYSTEM_LOCK(lt, region);
843 LOCK_LOCKERS(env, region);
863 OBJECT_LOCK_NDX(lt, region, info->last_ndx);
887 LOCK_DD(env, region);
888 SH_TAILQ_REMOVE(&region->dd_objs,
890 UNLOCK_DD(env, region);
895 STAT(region->stat.st_ndeadlocks++);
896 done: OBJECT_UNLOCK(lt, region, info->last_ndx);
898 out: UNLOCK_LOCKERS(env, region);
899 LOCK_SYSTEM_UNLOCK(lt, region);