• Home
  • Raw
  • Download

Lines Matching refs:tsk

1210 			    struct task_struct *tsk)  in handle_exit_race()  argument
1218 if (tsk && tsk->futex_state != FUTEX_STATE_DEAD) in handle_exit_race()
3742 static void futex_cleanup(struct task_struct *tsk) in futex_cleanup() argument
3744 if (unlikely(tsk->robust_list)) { in futex_cleanup()
3745 exit_robust_list(tsk); in futex_cleanup()
3746 tsk->robust_list = NULL; in futex_cleanup()
3750 if (unlikely(tsk->compat_robust_list)) { in futex_cleanup()
3751 compat_exit_robust_list(tsk); in futex_cleanup()
3752 tsk->compat_robust_list = NULL; in futex_cleanup()
3756 if (unlikely(!list_empty(&tsk->pi_state_list))) in futex_cleanup()
3757 exit_pi_state_list(tsk); in futex_cleanup()
3777 void futex_exit_recursive(struct task_struct *tsk) in futex_exit_recursive() argument
3780 if (tsk->futex_state == FUTEX_STATE_EXITING) in futex_exit_recursive()
3781 mutex_unlock(&tsk->futex_exit_mutex); in futex_exit_recursive()
3782 tsk->futex_state = FUTEX_STATE_DEAD; in futex_exit_recursive()
3785 static void futex_cleanup_begin(struct task_struct *tsk) in futex_cleanup_begin() argument
3793 mutex_lock(&tsk->futex_exit_mutex); in futex_cleanup_begin()
3806 raw_spin_lock_irq(&tsk->pi_lock); in futex_cleanup_begin()
3807 tsk->futex_state = FUTEX_STATE_EXITING; in futex_cleanup_begin()
3808 raw_spin_unlock_irq(&tsk->pi_lock); in futex_cleanup_begin()
3811 static void futex_cleanup_end(struct task_struct *tsk, int state) in futex_cleanup_end() argument
3817 tsk->futex_state = state; in futex_cleanup_end()
3822 mutex_unlock(&tsk->futex_exit_mutex); in futex_cleanup_end()
3825 void futex_exec_release(struct task_struct *tsk) in futex_exec_release() argument
3834 futex_cleanup_begin(tsk); in futex_exec_release()
3835 futex_cleanup(tsk); in futex_exec_release()
3840 futex_cleanup_end(tsk, FUTEX_STATE_OK); in futex_exec_release()
3843 void futex_exit_release(struct task_struct *tsk) in futex_exit_release() argument
3845 futex_cleanup_begin(tsk); in futex_exit_release()
3846 futex_cleanup(tsk); in futex_exit_release()
3847 futex_cleanup_end(tsk, FUTEX_STATE_DEAD); in futex_exit_release()