diff mbox series

[v2,1/2] block: export task_work_add()

Message ID 969f764d-0e0f-6c64-de72-ecfee30bdcf7@I-love.SAKURA.ne.jp (mailing list archive)
State New, archived
Headers show
Series [v2,1/2] block: export task_work_add() | expand

Commit Message

Tetsuo Handa Jan. 7, 2022, 11 a.m. UTC
Export task_work_add() so that the loop driver can synchronously perform
autoclear operation without disk->open_mutex held.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
---
Changes in v2:
  Update patch description.

 kernel/task_work.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/kernel/task_work.c b/kernel/task_work.c
index 1698fbe6f0e1..2a1644189182 100644
--- a/kernel/task_work.c
+++ b/kernel/task_work.c
@@ -60,6 +60,7 @@  int task_work_add(struct task_struct *task, struct callback_head *work,
 
 	return 0;
 }
+EXPORT_SYMBOL_GPL(task_work_add);
 
 /**
  * task_work_cancel_match - cancel a pending work added by task_work_add()