Lines Matching defs:task
22 #include <linux/sched/task.h>
68 * 1) The reader critical section is long, perhaps the task sleeps after
196 * Note that the owner value just indicates the task has owned the rwsem
236 * is a task pointer in owner of a reader-owned rwsem, it will be the
282 * Return just the real task structure pointer of the owner
291 * Return the real task structure pointer of the owner and the embedded
353 struct task_struct *task;
395 * to actually wakeup the blocked task(s) and drop the reference count,
397 * - woken process blocks are discarded from the list after having task zeroed
420 * Until the task is actually later awoken later by
425 wake_q_add(wake_q, waiter->task);
469 owner = waiter->task;
492 * may see waiter->task got cleared, finish its critical section and
497 * 2) For each waiters in the new list, clear waiter->task and
536 tsk = waiter->task;
543 * to the task to wakeup.
545 smp_store_release(&waiter->task, NULL);
650 * task is not on cpu or its cpu is preempted
855 * An RT task cannot do optimistic spinning if it cannot
857 * happen if the current task and the lock holder happen
863 * There are 2 possible cases where an RT task may be able
870 * task just comes in and acquire the lock before
875 * task is made to retry one more time to see if it can
878 * new owner is not a writer or spinnable, the RT task will
1036 waiter.task = current;
1087 if (!smp_load_acquire(&waiter.task)) {
1093 if (waiter.task)
1163 waiter.task = current;