task_work: add helper for signalling a task
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 21 Apr 2022 13:44:19 +0000 (14:44 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Apr 2022 14:38:15 +0000 (08:38 -0600)
commit272c664874ed02da74dc1736520d2c9b2d66be87
treea5b0adf702c2c037d1cefe0ec31353024aeb9b49
parentbcbdcb03b9332fb415aad1c6373a383e5c04037d
task_work: add helper for signalling a task

Extract a task_work_notify() helper from task_work_add(), so we can use
it in the future.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/12c006fc159c885a44e8b773b14b3c935ff8abb7.1650548192.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/task_work.h
kernel/task_work.c