diff options
| author | Frederic Weisbecker <frederic@kernel.org> | 2024-06-21 12:15:58 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-08-19 06:40:57 +0300 |
| commit | 1fd27cc6f0a540f97d29bd695521a3bb57d02f33 (patch) | |
| tree | b393e124a9c7aecbdf69fad1efbd8be5a0336fca /include/linux/task_work.h | |
| parent | 973155ca67fef3038d5d752f7076c45a010e1b43 (diff) | |
| download | linux-1fd27cc6f0a540f97d29bd695521a3bb57d02f33.tar.xz | |
task_work: s/task_work_cancel()/task_work_cancel_func()/
commit 68cbd415dd4b9c5b9df69f0f091879e56bf5907a upstream.
A proper task_work_cancel() API that actually cancels a callback and not
*any* callback pointing to a given function is going to be needed for
perf events event freeing. Do the appropriate rename to prepare for
that.
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20240621091601.18227-2-frederic@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/task_work.h')
| -rw-r--r-- | include/linux/task_work.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/task_work.h b/include/linux/task_work.h index 5b8a93f288bb..da581770b89d 100644 --- a/include/linux/task_work.h +++ b/include/linux/task_work.h @@ -24,7 +24,7 @@ int task_work_add(struct task_struct *task, struct callback_head *twork, struct callback_head *task_work_cancel_match(struct task_struct *task, bool (*match)(struct callback_head *, void *data), void *data); -struct callback_head *task_work_cancel(struct task_struct *, task_work_func_t); +struct callback_head *task_work_cancel_func(struct task_struct *, task_work_func_t); void task_work_run(void); static inline void exit_task_work(struct task_struct *task) |
