Lines Matching +full:current +full:- +full:mode
1 /* SPDX-License-Identifier: GPL-2.0-only */
9 #include <linux/blk-cgroup.h>
12 * set_notify_resume - cause resume_user_mode_work() to be called
16 * before returning to user mode. If it's already running in user mode,
28 * resume_user_mode_work - Perform work before returning to user mode
29 * @regs: user-mode registers of @current task
32 * about to return to user mode, and the user state in @regs can be
36 * user mode.
44 * This barrier pairs with task_work_add()->set_notify_resume() after in resume_user_mode_work()
45 * hlist_add_head(task->task_works); in resume_user_mode_work()
48 if (unlikely(task_work_pending(current))) in resume_user_mode_work()
52 if (unlikely(current->cached_requested_key)) { in resume_user_mode_work()
53 key_put(current->cached_requested_key); in resume_user_mode_work()
54 current->cached_requested_key = NULL; in resume_user_mode_work()