Home
last modified time | relevance | path

Searched full:trylock (Results 1 – 25 of 39) sorted by relevance

12

/linux/fs/ocfs2/
H A Dlocks.c26 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 Dstack_o2cb.c124 [DLM_NOTQUEUED] = -EAGAIN, /* Trylock failed */
/linux/kernel/locking/
H A Dtest-ww_mutex.c124 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 Dqspinlock.c163 * 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 Dlockdep.c3254 * 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 Dhwspinlock_internal.h21 * @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 Dstm32_hwspinlock.c52 .trylock = stm32_hwspinlock_trylock,
H A Dsprd_hwspinlock.c74 .trylock = sprd_hwspinlock_trylock,
H A Dsun6i_hwspinlock.c78 .trylock = sun6i_hwspinlock_trylock,
H A Dqcom_hwspinlock.c92 .trylock = qcom_hwspinlock_trylock,
/linux/include/trace/events/
H A Dlock.h27 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 Dqspinlock.h22 * 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 Dbpf_arena_spin_lock.h271 * 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 Ddrm_modeset_lock.h39 * @trylock_only: trylock mode used in atomic contexts/panic notifiers
69 * Trylock mode, use only for panic handlers!
/linux/Documentation/gpu/rfc/
H A Di915_gem_lmem.rst16 * dma_resv_lockitem for full dma_resv_lock, i.e not just trylock
/linux/arch/riscv/include/asm/
H A Dspinlock.h35 SPINLOCK_BASE_DECLARE(trylock, bool, arch_spinlock_t *)
/linux/kernel/bpf/
H A Dmmap_unlock_work.h38 * PREEMPT_RT does not allow to trylock mmap sem in in bpf_mmap_unlock_get_irq_work()
/linux/drivers/gpu/drm/i915/
H A Di915_gem_evict.c71 * 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 Dxfs_ialloc.h72 #define XFS_IALLOC_FLAG_TRYLOCK (1U << 0) /* use trylock for buffer locking */
H A Dxfs_alloc.h22 #define XFS_ALLOC_FLAG_TRYLOCK (1U << 0) /* use trylock for buffer locking */
/linux/kernel/futex/
H A Drequeue.c119 * 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 Dlockdep_types.h249 unsigned int trylock:1; /* 16 bits */ member
/linux/rust/kernel/
H A Dmm.rs171 /// This is an optimistic trylock operation, so it may fail if there is contention. In that
/linux/Documentation/filesystems/
H A Ddirectory-locking.rst97 current parent of the alias. If either trylock fails, we fail the lookup.
/linux/Documentation/filesystems/iomap/
H A Ddesign.rst352 trylock algorithms.

12