| /linux/fs/ocfs2/ |
| H A D | locks.c | 26 int ret = 0, level = 0, trylock = 0; in ocfs2_do_flock() local 33 trylock = 1; in ocfs2_do_flock() 63 ret = ocfs2_file_lock(file, level, trylock); in ocfs2_do_flock() 65 if (ret == -EAGAIN && trylock) in ocfs2_do_flock()
|
| H A D | stack_o2cb.c | 124 [DLM_NOTQUEUED] = -EAGAIN, /* Trylock failed */
|
| /linux/kernel/locking/ |
| H A D | test-ww_mutex.c | 124 static int test_aa(struct ww_class *class, bool trylock) in test_aa() argument 129 const char *from = trylock ? "trylock" : "lock"; in test_aa() 134 if (!trylock) { in test_aa() 143 pr_err("%s: initial trylock failed!\n", __func__); in test_aa() 186 bool resolve, trylock; member 197 if (!abba->trylock) in test_abba_work() 222 static int test_abba(struct ww_class *class, bool trylock, bool resolve) in test_abba() argument 234 abba.trylock = trylock; in test_abba() 240 if (!trylock) in test_abba()
|
| H A D | qspinlock.c | 163 * trylock || pending in clear_pending_set_locked() 165 * 0,0,* -> 0,1,* -> 0,0,1 pending, trylock in clear_pending_set_locked() 257 * attempt the trylock once more in the hope someone let go while we
|
| H A D | lockdep.c | 3254 * all consecutive trylock entries and the final non-trylock entry - or 3289 * Stop after the first non-trylock entry, in check_prevs_add() 3290 * as non-trylock entries have added their in check_prevs_add() 3294 if (!hlock->trylock) in check_prevs_add() 3866 * Trylock needs to maintain the stack of held locks, but it in validate_chain() 3867 * does not add new dependencies, because trylock can be done in validate_chain() 3875 if (!hlock->trylock && hlock->check && in validate_chain() 4624 * If non-trylock use in a hardirq or softirq context, then in mark_usage() 4627 if (!hlock->trylock) { in mark_usage() 4859 if (!next_inner || next->trylock) in check_wait_context() [all …]
|
| /linux/drivers/hwspinlock/ |
| H A D | hwspinlock_internal.h | 21 * @trylock: make a single attempt to take the lock. returns 0 on 28 * invocations of @trylock. may _not_ sleep. 31 int (*trylock)(struct hwspinlock *lock); member
|
| H A D | stm32_hwspinlock.c | 52 .trylock = stm32_hwspinlock_trylock,
|
| H A D | sprd_hwspinlock.c | 74 .trylock = sprd_hwspinlock_trylock,
|
| H A D | sun6i_hwspinlock.c | 78 .trylock = sun6i_hwspinlock_trylock,
|
| H A D | qcom_hwspinlock.c | 92 .trylock = qcom_hwspinlock_trylock,
|
| /linux/include/trace/events/ |
| H A D | lock.h | 27 int trylock, int read, int check, 30 TP_ARGS(lock, subclass, trylock, read, check, next_lock, ip), 39 __entry->flags = (trylock ? 1 : 0) | (read ? 2 : 0);
|
| /linux/arch/powerpc/include/asm/ |
| H A D | qspinlock.h | 22 * The trylock itself may steal. This makes trylocks slightly stronger, and 97 /* Trylock succeeds only when unlocked and no queued nodes */ in __queued_spin_trylock_nosteal() 119 /* Trylock may get ahead of queued nodes if it finds unlocked */ in __queued_spin_trylock_steal()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | bpf_arena_spin_lock.h | 271 * trylock || pending in arena_spin_lock_slowpath() 273 * 0,0,* -> 0,1,* -> 0,0,1 pending, trylock in arena_spin_lock_slowpath() 329 * an error. Original qspinlock has a trylock fallback in this case. in arena_spin_lock_slowpath() 350 * attempt the trylock once more in the hope someone let go while we in arena_spin_lock_slowpath()
|
| /linux/include/drm/ |
| H A D | drm_modeset_lock.h | 39 * @trylock_only: trylock mode used in atomic contexts/panic notifiers 69 * Trylock mode, use only for panic handlers!
|
| /linux/Documentation/gpu/rfc/ |
| H A D | i915_gem_lmem.rst | 16 * dma_resv_lockitem for full dma_resv_lock, i.e not just trylock
|
| /linux/arch/riscv/include/asm/ |
| H A D | spinlock.h | 35 SPINLOCK_BASE_DECLARE(trylock, bool, arch_spinlock_t *)
|
| /linux/kernel/bpf/ |
| H A D | mmap_unlock_work.h | 38 * PREEMPT_RT does not allow to trylock mmap sem in in bpf_mmap_unlock_get_irq_work()
|
| /linux/drivers/gpu/drm/i915/ |
| H A D | i915_gem_evict.c | 71 * after ungrab_vma(), this way trylock is always paired with unlock. in grab_vma() 445 * in the event i915_gem_evict_vm() is unable to trylock an object for eviction, 487 * If we already own the lock, trylock fails. In case in i915_gem_evict_vm()
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_ialloc.h | 72 #define XFS_IALLOC_FLAG_TRYLOCK (1U << 0) /* use trylock for buffer locking */
|
| H A D | xfs_alloc.h | 22 #define XFS_ALLOC_FLAG_TRYLOCK (1U << 0) /* use trylock for buffer locking */
|
| /linux/kernel/futex/ |
| H A D | requeue.c | 119 * trylock, but that would just add more conditionals in futex_requeue_pi_prepare() 525 * - If the trylock failed with an error (ret < 0) then in futex_requeue() 530 * - If the trylock did not succeed (ret == 0) then the in futex_requeue()
|
| /linux/include/linux/ |
| H A D | lockdep_types.h | 249 unsigned int trylock:1; /* 16 bits */ member
|
| /linux/rust/kernel/ |
| H A D | mm.rs | 171 /// This is an optimistic trylock operation, so it may fail if there is contention. In that
|
| /linux/Documentation/filesystems/ |
| H A D | directory-locking.rst | 97 current parent of the alias. If either trylock fails, we fail the lookup.
|
| /linux/Documentation/filesystems/iomap/ |
| H A D | design.rst | 352 trylock algorithms.
|