Searched refs:lru (Results 1 – 2 of 2) sorted by relevance
280 nssad_cfg_t *cp, *lru, *prev; in get_cfg() local359 lru = state.qhead; in get_cfg()360 if (pthread_rwlock_trywrlock(&lru->lock) == 0) { in get_cfg()363 if (prev->qnext != lru) in get_cfg()368 (void) pthread_rwlock_unlock(&lru->lock); in get_cfg()369 nssad_cfg_destroy(lru); in get_cfg()
196 struct gssd_ctx_slot *lru; in gssd_alloc_slot() local203 lru = gssd_lru_head; in gssd_alloc_slot()204 gssd_lru_head = lru->lru_next; in gssd_alloc_slot()211 if (lru->inuse) { in gssd_alloc_slot()212 if (lru->ctx != GSS_C_NO_CONTEXT) in gssd_alloc_slot()214 &lru->ctx, NULL); in gssd_alloc_slot()222 current_time - lru->create_time, tooks, in gssd_alloc_slot()237 lru->verf = context_verf; in gssd_alloc_slot()239 lru->create_time = current_time; in gssd_alloc_slot()240 lru->ctx = ctx; in gssd_alloc_slot()[all …]