Lines Matching full:intent
9 * Shared/intent/exclusive locks: sleepable read/write locks, like rw semaphores
10 * but with an additional state: read/shared, intent, exclusive/write
12 * The purpose of the intent state is to allow for greater concurrency on tree
17 * But by adding an intent state, which is exclusive with other intent locks but
18 * not with readers, we can take intent locks at the start of the operation,
26 * An intent lock must be held before taking a write lock:
37 * six_lock_downgrade() convert from intent to read
38 * six_lock_tryupgrade() attempt to convert from read to intent, may fail
69 * read and intent states that can be used to provide reentrancy by an upper
71 * read or intent state, six_lock_increment() can be used to bump the "lock
82 * Since the intent state supercedes read, it's legal to increment the read
83 * counter when holding an intent lock, but not the reverse.
184 * @lock should be held for read or intent, and not write
366 __SIX_LOCK(intent)