mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-22 09:17:53 +07:00
io_uring: remove io_wq_current_is_worker
Since commit b18fdf71e0
("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>
This commit is contained in:
parent
22efde5998
commit
8cdda87a44
@ -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)
|
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)
|
#endif /* INTERNAL_IO_WQ_H */
|
||||||
{
|
|
||||||
return in_task() && (current->flags & PF_IO_WORKER);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
Loading…
Reference in New Issue
Block a user