• Home
  • Raw
  • Download

Lines Matching refs:tsk

1165 			    struct task_struct *tsk)  in handle_exit_race()  argument
1173 if (tsk && tsk->futex_state != FUTEX_STATE_DEAD) in handle_exit_race()
3627 static void futex_cleanup(struct task_struct *tsk) in futex_cleanup() argument
3629 if (unlikely(tsk->robust_list)) { in futex_cleanup()
3630 exit_robust_list(tsk); in futex_cleanup()
3631 tsk->robust_list = NULL; in futex_cleanup()
3635 if (unlikely(tsk->compat_robust_list)) { in futex_cleanup()
3636 compat_exit_robust_list(tsk); in futex_cleanup()
3637 tsk->compat_robust_list = NULL; in futex_cleanup()
3641 if (unlikely(!list_empty(&tsk->pi_state_list))) in futex_cleanup()
3642 exit_pi_state_list(tsk); in futex_cleanup()
3662 void futex_exit_recursive(struct task_struct *tsk) in futex_exit_recursive() argument
3665 if (tsk->futex_state == FUTEX_STATE_EXITING) in futex_exit_recursive()
3666 mutex_unlock(&tsk->futex_exit_mutex); in futex_exit_recursive()
3667 tsk->futex_state = FUTEX_STATE_DEAD; in futex_exit_recursive()
3670 static void futex_cleanup_begin(struct task_struct *tsk) in futex_cleanup_begin() argument
3678 mutex_lock(&tsk->futex_exit_mutex); in futex_cleanup_begin()
3691 raw_spin_lock_irq(&tsk->pi_lock); in futex_cleanup_begin()
3692 tsk->futex_state = FUTEX_STATE_EXITING; in futex_cleanup_begin()
3693 raw_spin_unlock_irq(&tsk->pi_lock); in futex_cleanup_begin()
3696 static void futex_cleanup_end(struct task_struct *tsk, int state) in futex_cleanup_end() argument
3702 tsk->futex_state = state; in futex_cleanup_end()
3707 mutex_unlock(&tsk->futex_exit_mutex); in futex_cleanup_end()
3710 void futex_exec_release(struct task_struct *tsk) in futex_exec_release() argument
3719 futex_cleanup_begin(tsk); in futex_exec_release()
3720 futex_cleanup(tsk); in futex_exec_release()
3725 futex_cleanup_end(tsk, FUTEX_STATE_OK); in futex_exec_release()
3728 void futex_exit_release(struct task_struct *tsk) in futex_exit_release() argument
3730 futex_cleanup_begin(tsk); in futex_exit_release()
3731 futex_cleanup(tsk); in futex_exit_release()
3732 futex_cleanup_end(tsk, FUTEX_STATE_DEAD); in futex_exit_release()