Lines Matching refs:no_sleep
257 static struct lru_entry *lru_evict(struct lru *lru, le_predicate pred, void *context, bool no_sleep)
298 if (!no_sleep)
400 bool no_sleep;
413 if (static_branch_unlikely(&no_sleep_enabled) && bc->no_sleep)
421 if (static_branch_unlikely(&no_sleep_enabled) && bc->no_sleep)
429 if (static_branch_unlikely(&no_sleep_enabled) && bc->no_sleep)
437 if (static_branch_unlikely(&no_sleep_enabled) && bc->no_sleep)
465 if (static_branch_unlikely(&no_sleep_enabled) && lh->cache->no_sleep)
470 if (static_branch_unlikely(&no_sleep_enabled) && lh->cache->no_sleep)
480 if (static_branch_unlikely(&no_sleep_enabled) && lh->cache->no_sleep)
485 if (static_branch_unlikely(&no_sleep_enabled) && lh->cache->no_sleep)
538 static void cache_init(struct dm_buffer_cache *bc, unsigned int num_locks, bool no_sleep)
543 bc->no_sleep = no_sleep;
546 if (no_sleep)
688 le = lru_evict(&bc->lru[list_mode], __evict_pred, &w, bc->no_sleep);
742 le = lru_evict(&bc->lru[old_mode], __evict_pred, &w, bc->no_sleep);
955 BUG_ON(bc->no_sleep);
985 bool no_sleep;
1026 if (static_branch_unlikely(&no_sleep_enabled) && c->no_sleep)
1034 if (static_branch_unlikely(&no_sleep_enabled) && c->no_sleep)
1509 if (static_branch_unlikely(&no_sleep_enabled) && c->no_sleep &&
1542 if (static_branch_unlikely(&no_sleep_enabled) && c->no_sleep)
2474 c->no_sleep = true;
2559 if (c->no_sleep)
2609 if (c->no_sleep)
2670 (static_branch_unlikely(&no_sleep_enabled) && b->c->no_sleep)) {