summaryrefslogtreecommitdiffstats
path: root/fs/io-wq.h
diff options
context:
space:
mode:
authorJackie Liu <liuyun01@kylinos.cn>2019-12-02 17:14:53 +0800
committerJens Axboe <axboe@kernel.dk>2019-12-03 07:04:32 -0700
commit8cdda87a4414092cd210e766189cf0353a844861 (patch)
tree8a4b5d53a0d7afb5432a845a7d7c3886a09536c2 /fs/io-wq.h
parent22efde5998657f6d1f31592c659aa3a9c7ad65f1 (diff)
downloadlinux-8cdda87a4414092cd210e766189cf0353a844861.tar.gz
linux-8cdda87a4414092cd210e766189cf0353a844861.tar.bz2
linux-8cdda87a4414092cd210e766189cf0353a844861.zip
io_uring: remove io_wq_current_is_worker
Since commit b18fdf71e01f ("io_uring: simplify io_req_link_next()"), the io_wq_current_is_worker function is no longer needed, clean it up. Signed-off-by: Jackie Liu <liuyun01@kylinos.cn> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io-wq.h')
-rw-r--r--fs/io-wq.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/io-wq.h b/fs/io-wq.h
index dd0af0d7376c..892db0bb64b1 100644
--- a/fs/io-wq.h
+++ b/fs/io-wq.h
@@ -118,10 +118,6 @@ static inline void io_wq_worker_sleeping(struct task_struct *tsk)
static inline void io_wq_worker_running(struct task_struct *tsk)
{
}
-#endif
+#endif /* CONFIG_IO_WQ */
-static inline bool io_wq_current_is_worker(void)
-{
- return in_task() && (current->flags & PF_IO_WORKER);
-}
-#endif
+#endif /* INTERNAL_IO_WQ_H */