io_uring: make task_work pending check dependent on ring type
authorJens Axboe <axboe@kernel.dk>
Thu, 21 Nov 2024 15:27:10 +0000 (08:27 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 22 Nov 2024 15:00:50 +0000 (08:00 -0700)
commitff401eebd1294c2396bf290d6f1edfe9e7906f91
tree69e1ea52959689037c49bd49361126c239c7b374
parent3ad1cd544db120eb74c8815eaf99f935c4db8ffd
io_uring: make task_work pending check dependent on ring type

There's no need to check for generic task_work for DEFER_TASKRUN, if we
have local task_work pending. This avoids dipping into the huge
task_struct, if we have normal task_work pending.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.h