Lines Matching refs:lock
485 EBUG_ON(!six_lock_counts(&b->c.lock).n[SIX_LOCK_write]);
1753 mutex_lock(&c->btree_cache.lock);
1755 mutex_unlock(&c->btree_cache.lock);
1763 six_unlock_write(&b->c.lock);
1764 six_unlock_intent(&b->c.lock);
1838 six_unlock_read(&b->c.lock);
1991 * We may only have a read lock on the btree node - the dirty bit is our
1992 * "lock" against racing with other threads that may be trying to start
1994 * dirty bit requires a write lock, we can't race with other threads
2223 * Work that must be done with write lock held:
2244 * we're still holding the write lock:
2287 six_lock_tryupgrade(&b->c.lock))) {
2290 /* don't cycle lock unnecessarily: */
2292 six_trylock_write(&b->c.lock)) {
2294 six_unlock_write(&b->c.lock);
2298 six_lock_downgrade(&b->c.lock);