Thread (6 messages) 6 messages, 2 authors, 2021-12-23

[PATCH 1/2] block: export task_work_add()

flat view
STALE1758d

From: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Date: 2021-12-22 15:26:32
Subsystem: the rest · Maintainer: Linus Torvalds

The loop driver wants to synchronously perform autoclear operation, for
some userspace programs (e.g. xfstest) depend on that the autoclear
operation already completes by the moment lo_release() from close()
returns to userspace and immediately call umount() of a partition
containing a backing file which the autoclear operation will close().

Export task_work_add() so that the loop driver can perform autoclear
operation by the moment lo_release() from close() returns to userspace.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
---
 kernel/task_work.c | 1 +
 1 file changed, 1 insertion(+)
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()
-- 
2.32.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help