• Home
  • Raw
  • Download

Lines Matching refs:tsk

1029 static void futex_cleanup(struct task_struct *tsk)  in futex_cleanup()  argument
1031 if (unlikely(tsk->robust_list)) { in futex_cleanup()
1032 exit_robust_list(tsk); in futex_cleanup()
1033 tsk->robust_list = NULL; in futex_cleanup()
1037 if (unlikely(tsk->compat_robust_list)) { in futex_cleanup()
1038 compat_exit_robust_list(tsk); in futex_cleanup()
1039 tsk->compat_robust_list = NULL; in futex_cleanup()
1043 if (unlikely(!list_empty(&tsk->pi_state_list))) in futex_cleanup()
1044 exit_pi_state_list(tsk); in futex_cleanup()
1064 void futex_exit_recursive(struct task_struct *tsk) in futex_exit_recursive() argument
1067 if (tsk->futex_state == FUTEX_STATE_EXITING) in futex_exit_recursive()
1068 mutex_unlock(&tsk->futex_exit_mutex); in futex_exit_recursive()
1069 tsk->futex_state = FUTEX_STATE_DEAD; in futex_exit_recursive()
1072 static void futex_cleanup_begin(struct task_struct *tsk) in futex_cleanup_begin() argument
1080 mutex_lock(&tsk->futex_exit_mutex); in futex_cleanup_begin()
1093 raw_spin_lock_irq(&tsk->pi_lock); in futex_cleanup_begin()
1094 tsk->futex_state = FUTEX_STATE_EXITING; in futex_cleanup_begin()
1095 raw_spin_unlock_irq(&tsk->pi_lock); in futex_cleanup_begin()
1098 static void futex_cleanup_end(struct task_struct *tsk, int state) in futex_cleanup_end() argument
1104 tsk->futex_state = state; in futex_cleanup_end()
1109 mutex_unlock(&tsk->futex_exit_mutex); in futex_cleanup_end()
1112 void futex_exec_release(struct task_struct *tsk) in futex_exec_release() argument
1121 futex_cleanup_begin(tsk); in futex_exec_release()
1122 futex_cleanup(tsk); in futex_exec_release()
1127 futex_cleanup_end(tsk, FUTEX_STATE_OK); in futex_exec_release()
1130 void futex_exit_release(struct task_struct *tsk) in futex_exit_release() argument
1132 futex_cleanup_begin(tsk); in futex_exit_release()
1133 futex_cleanup(tsk); in futex_exit_release()
1134 futex_cleanup_end(tsk, FUTEX_STATE_DEAD); in futex_exit_release()