Skip to content

Commit 7642e66

Browse files
committed
io_uring: split out task work code into tw.c
Move the task work handling code out of io_uring.c into a new tw.c file. This includes the local work, normal work, and fallback work handling infrastructure. The associated tw.h header contains io_should_terminate_tw() as a static inline helper, along with the necessary function declarations. Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 1f29309 commit 7642e66

5 files changed

Lines changed: 483 additions & 448 deletions

File tree

io_uring/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ endif
88

99
obj-$(CONFIG_IO_URING) += io_uring.o opdef.o kbuf.o rsrc.o notif.o \
1010
tctx.o filetable.o rw.o poll.o \
11-
eventfd.o uring_cmd.o openclose.o \
11+
tw.o eventfd.o uring_cmd.o openclose.o \
1212
sqpoll.o xattr.o nop.o fs.o splice.o \
1313
sync.o msg_ring.o advise.o openclose.o \
1414
statx.o timeout.o cancel.o \
1515
waitid.o register.o truncate.o \
1616
memmap.o alloc_cache.o query.o
17+
1718
obj-$(CONFIG_IO_URING_ZCRX) += zcrx.o
1819
obj-$(CONFIG_IO_WQ) += io-wq.o
1920
obj-$(CONFIG_FUTEX) += futex.o

0 commit comments

Comments
 (0)