create_io_thread() creates a thread for doing work on behalf of some
user process - export it so it can be used in thread_with_file, which
spins up a kthread connected to a file descriptor.

Cc: Jens Axboe <[email protected]>
Signed-off-by: Kent Overstreet <[email protected]>
---
 kernel/fork.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/fork.c b/kernel/fork.c
index 99076dbe27d8..fadf08532327 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -2744,6 +2744,7 @@ struct task_struct *create_io_thread(int (*fn)(void *), 
void *arg, int node)
 
        return copy_process(NULL, 0, node, &args);
 }
+EXPORT_SYMBOL_GPL(create_io_thread);
 
 /*
  *  Ok, this is the main fork-routine.
-- 
2.45.1


Reply via email to