path: root/fs/io-wq.h
diff options
authorJens Axboe <>2021-02-17 21:05:41 -0700
committerJens Axboe <>2021-02-21 17:25:22 -0700
commit843bbfd49f02caab7186910480a86378bb84e975 (patch)
treeb3004422b8d259e74b8ec2f345af9d42866955a3 /fs/io-wq.h
parentbf1daa4bfc77a60e58bed392e659c9ddd0174340 (diff)
io-wq: make io_wq_fork_thread() available to other users
We want to use this in io_uring proper as well, for the SQPOLL thread. Rename it from fork_thread() to io_wq_fork_thread(), and make it available through the io-wq.h header. Signed-off-by: Jens Axboe <>
Diffstat (limited to 'fs/io-wq.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/io-wq.h b/fs/io-wq.h
index 584f0bd5a83d..23f6cbd620f8 100644
--- a/fs/io-wq.h
+++ b/fs/io-wq.h
@@ -106,6 +106,8 @@ void io_wq_destroy(struct io_wq *wq);
void io_wq_enqueue(struct io_wq *wq, struct io_wq_work *work);
void io_wq_hash_work(struct io_wq_work *work, void *val);
+pid_t io_wq_fork_thread(int (*fn)(void *), void *arg);
static inline bool io_wq_is_hashed(struct io_wq_work *work)
return work->flags & IO_WQ_WORK_HASHED;